[Mono-devel-list] Re: patch for: Non ASCII characters infilenames/ command line parameters

Gaute B Strokkenes biggaute at uwc.net
Tue Oct 21 06:58:33 EDT 2003


On 21 okt 2003, joergr at voelcker.com wrote:

>> -----Original Message-----
>> From: Gaute B Strokkenes [mailto:biggaute at uwc.net] 
>> Sent: Tuesday, October 21, 2003 12:09 PM
>>
>> G_BROKEN_FILENAMES is what GTK uses these days.
[snip]
> G_BROKEN_FILENAMES doesn't work in this context. If you look into
> io.c you find following code in CreateDirectory (only one example):
>
> 	utf8_name = _wapi_unicode_to_utf8 (name);
> 	...
> 	result = mkdir (utf8_name, 0777);
>
> The filename is *always* encoded as UTF8, regardless of the system
> locale. Using the current locale may be a bad idea, but that's what
> major distributions do today (in our case SuSE). And if we want to
> run our applications on customer's systems we have to support that.

I realise that Mono does not currently examine G_BROKEN_FILENAMES.  My
point was that if it is desirable to offer a mechanism to specify that
file names are expected to be in the locale encoding rather than UTF-8
then it makes sense to use the same mechanism as Glib and Gtk.

-- 
Gaute Strokkenes                        http://www.srcf.ucam.org/~gs234/
Please come home with me...  I have Tylenol!!



More information about the Mono-devel-list mailing list