Overview
| Artifact ID: | 2c33aee64a88695e71053b009f444f65b602267eaeb9e64ddcb830fdc2e95cd8 |
|---|---|
| Ticket: | 9f9c828fde97a4c8a7a528dec3482ecce0838419
trim issue with chinese characters |
| User & Date: | oehhar on 2024-11-05 17:00:31 |
Changes
- icomment:
That is weired ! You mention Version 8.6. For me, on TCL 8.6.14, self compiled on Windows32 with MS-VC6 this does not happen. E.g., after the trim, the data is the same. And your data is on the Unicode base plane, so no surrogate issue. <verbatim> % set comment "测试包装" 测试包装 % string length $comment 4 % scan $comment %c%c%c%c c1 c2 c3 c4 4 % set c1 27979 % set c2 35797 % set c3 21253 % set c4 35013 % set comment2 [string trim $comment] 测试包装 % set comment2 测试包装 </verbatim> May you give more background, e.g. exact TCL version and platform, compiler,... Thank you, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"