GNOME Bugzilla – Bug 155887
queryimmodules.c: Replacing backslashes is breaking DBCS
Last modified: 2004-12-22 21:47:04 UTC
Please describe the problem: The fix for Bug-152608 occurred the new problem. In codepage 932, second byte of double-byte characters can be a backslash. (Maybe codepage 936 and 950 is also...) If replace backslashes in path, DBCS are broken. For exsample of DBCS, analyse this Japanese path... "C:\\document\\\x90\x7d\x95\x5c1.txt" (43 3A 5C 64 6F 63 75 6D 65 6E 74 5C 90 7D 95 5C 31 2E 74 78 74) Folder -> "C:\\document\\" (43 3A 5C 64 6F 63 75 6D 65 6E 74 5C) Filename -> "\x90\x7d\x95\x5c1.txt" (90 7D 95 5C 31 2E 74 78 74) Last backslash is NOT separator. \x95\x5c (95 5C) is displayed as one character. Steps to reproduce: 1. make folder whose name is DBCS which has a backslash. 2. install GTK+ in this folder 3. run gtk-query-immodules-2.0.exe Actual results: Paths are broken. Expected results: Does this happen every time? codepage 932, 936 and 950 Other information:
Yeah, well, I don't think we can do much about this right now. See also bug #101792. gtk-query-immodules-2.0.exe isn't really supposed to be run blindly without manually checking and correcting the output, at least not on Windows...
*** This bug has been marked as a duplicate of 150731 ***