Overview
| Artifact ID: | 85bf9adc5718e92df8a953442324560ec1779cf5 |
|---|---|
| Ticket: | 3466099fffffffffffffffffffffffffffffffff
BOM in Unicode |
| User & Date: | nijtmans on 2012-01-09 22:07:32 |
Changes
- icomment:
>I think that when Tcl_FSEvalFileEx() >receives a non-NULL value of encodingName, >that request ought to be honored. Agreed, but it's a little bit trickier. If the user explicitly speciefies "utf-8" or "unicode" that should be honored too. Actually, I am thinking about splitting the functionality between Tcl_FSEvalFileEx and the encoding machinery. Currently the encoding "" is synonymous with the system encoding. We could also create an additional encoding with the name "", which reads the first 2/3/4 bytes to see if it is some kind of BOM. If it is, switch to the corresponding encoding (utf-8, utf-16, ....) otherwise go on using default system encoding. Then the only thing left to be done in Tcl_FSEvalFileEx is to strip the BOM.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"