Overview
| Artifact ID: | 83dd3d43dc32bdd34274f2e7767b38b47626665c |
|---|---|
| Ticket: | 411825ffffffffffffffffffffffffffffffffff
Passing list w/UTF-8 from C can fail |
| User & Date: | dossy on 2003-08-28 18:58:04 |
Changes
- icomment:
Logged In: YES user_id=21885 Donal -- yes, I see your point and now I agree. The rule is that list elements ending in a list delimiter get quoted, and since \302\240 is now no longer considered a list delimiter, it doesn't cause quoting to happen. Thanks. Don -- I understand what's supposed to happen (at least, I thought I did) but then, explain this: % encoding system identity % fconfigure stdout -encoding binary -translation binary % TestCmd foo bar % string length [TestCmd] 8 % string bytelength [TestCmd] 9 I would have expected to get "foo\302\240 bar" and not just "foo\240 bar". It's clear from string bytelength that the \302 is in there, but when I set stdout encoding to binary, it should give me the raw UTF-8 (9 bytes) and not the transcoded ISO-8859-1 representation (8 bytes), right? Or, am I misunderstanding what "-encoding binary" means and what "encoding system identity" does? I mean, this actually does what I expect: % fconfigure stdout -encoding identity % TestCmd foo bar Now it output "foo\302\240 bar" -- why will it do that on "- encoding identity" but not "-encoding binary"? Perhaps we can take this discussion to the wiki or email since it's not directly related to this particular bug -- let me know what works best for you.
- login: "dossy"
- mimetype: "text/plain"
- username: "dossy"