Overview
| Artifact ID: | 13f94df86684e315dce12b038ec215a6de44d821 |
|---|---|
| Ticket: | 411825ffffffffffffffffffffffffffffffffff
Passing list w/UTF-8 from C can fail |
| User & Date: | dossy on 2003-08-26 04:42:18 |
Changes
- icomment:
Logged In: YES user_id=21885 I'd really hate to pick at an old scab (this bug was closed back in 09/2001) but exactly what was "fixed" by dkf's commit? Against Tcl 8.4.4, using Tcl_AppendElement() which I know is deprecated, the problem is still occurring. I guess it has to do with this behavior: $ string is space [encoding convertfrom utf-8 \302\240] 1 What's annoying is if you do: > set a foo\302\240 fooà> set a [encoding convertfrom utf-8 foo\302\240] foo > lappend a bar foo bar > llength $a 2 > string bytelength $a 9 That does the right thing. But if you Tcl_AppendElement(), you'll get "foo\302\240bar", which is bad. -- Dossy
- login: "dossy"
- mimetype: "text/plain"
- username: "dossy"