From: <no...@so...> - 2002-03-02 03:23:47
|
Bugs item #524663, was opened at 2002-03-01 19:23 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=524663&group_id=10894 Category: 42. UTF-8 Strings Group: 8.3.4 Status: Open Resolution: None Priority: 5 Submitted By: Jeffrey Hobbs (hobbs) Assigned to: Jeffrey Hobbs (hobbs) Summary: Change output encoding flags for iso2022 Initial Comment: Keiichi Takahashi (bitwalk -at- jcom.home.ne dot jp) noted that output of iso2022 strings is not satisfactory. He made the attached patch. Against the test suite, this breaks the following tests, plus a similar one in io.test: test encoding-11.5 {LoadEncodingFile: escape file} { encoding convertto iso2022 \u4e4e } "\x1b(B\x1b$@8C" test encoding-13.1 {LoadEscapeTable} { set x [encoding convertto iso2022 ab\u4e4e\u68d9g] } "\x1b(Bab\x1b$@8C\x1b$\(DD%\x1b(Bg" What is does is change the output result such that the initial \x1b(B escape for iso8859-1 doesn't start the string, but rather ends it. I'm not sure that this is correct over larger tests and multiple lines, but it may be. This needs a bit more commenting before applying. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=110894&aid=524663&group_id=10894 |