Overview
| Artifact ID: | c1e68b92f57da2b6f53ec9b61bfa66f26693cdb5 |
|---|---|
| Ticket: | 411825ffffffffffffffffffffffffffffffffff
Passing list w/UTF-8 from C can fail |
| User & Date: | dgp on 2001-03-29 15:55:06 |
Changes
- assignee changed to: "msofer"
- icomment:
File Added - 4717: tclUtil.c.patch Logged In: YES user_id=80530 I was talking about the man page for Tcl_AppendElement(): http://dev.scriptics.com/man/tcl8.3.2/TclLib/SetResult.htm Now, reading the I18N HOWTO, it looks like I was reading "deprecated" too strongly. Tcl_DStringAppendElement() and Tcl_DStringStartSublist() also rely on TclNeedSpace() and they have not been deprecated, so TclNeedSpace() needs to be fixed after all. This bug is re-opened. Looking at TclNeedSpace() explains the mysterious platform dependence. The buggy symptoms you report will be present on those platforms/locales for which isspace(0240) returns true. I've attached a patch that I think will correct the problem. It's possible that it has other undesirable side-effects, so I've assigned this report to one of the maintainers of generic/tclUtil.c for review. Meanwhile you can use the workaround I posted in the first comment. Tcl_Merge() is safe for UTF-8 strings.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"