[Mono-bugs] [Bug 30781][Min] Changed - File names must be converted to utf8 before g_utf8_to_utf16
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
23 Sep 2002 15:32:25 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by dick@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=30781
--- shadow/30781 Mon Sep 23 08:10:42 2002
+++ shadow/30781.tmp.17377 Mon Sep 23 11:32:24 2002
@@ -66,6 +66,18 @@
a) choose the encoding of the current locale
b) always choose UTF-8. In the opinion of many (including me), only option
b) is sane, thus the name of the env var...
+
+------- Additional Comments From dick@ximian.com 2002-09-23 11:32 -------
+He forgot option c) don't use glib for filename handling.
+
+Insisting that all files have validly utf-8 encoded names is nonsense.
+ Even with setlocale(LC_ALL, "") and G_BROKEN_FILENAMES your test prog
+still has the names with latin1 chars defaced with "[Invalid UTF-8]"
+all over the place. All that's changed is that a g_warning isnt emitted.
+
+Unfortunately ripping glib out means going back to iconv, which is
+just as nasty :-(
+