[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 12:10:42 -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 gonzalo@ximian.com.


--- shadow/30781	Mon Sep 23 03:42:48 2002
+++ shadow/30781.tmp.22341	Mon Sep 23 08:10:42 2002
@@ -46,6 +46,26 @@
 ------- Additional Comments From dick@ximian.com  2002-09-23 03:42 -------
 It would be even nicer if glib could cope with the real world and not
 expect every user to have only 7bit ascii file names.
+------- Additional Comments From gonzalo@ximian.com  2002-09-23 08:10 -------
+This is what Matthias answered to one more question i did by mail:
+> Then another question arises: have all linux systems to set
+> G_BROKEN_FILENAMES? (or at least the ones that use chars above 127)
+No. The kernel doesn't really interpret the filename beyond looking
+for a few special bytes like '/', '.' or '..'. As far as the kernel is
+concerned, its just a byte sequence.
+It is up to the apps creating files to choose a consistent encoding
+for the filenames.
+There are basically two options:
+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...