Re: GError location filename as wide chars
- From: Kevin Ryde <user42 zip com au>
- To: gtk-perl-list gnome org
- Subject: Re: GError location filename as wide chars
- Date: Thu, 12 Feb 2009 10:18:03 +1100
Torsten Schoenfeld <kaffeetisch gmx de> writes:
Did you take a look at the filename conversion stuff in Glib
(filename_to_unicode, filename_from_unicode) too, by chance? Marc
Lehmann says it's totally broken:
<https://rt.cpan.org/Public/Bug/Display.html?id=39438>.
I might have seen that a while ago, and couldn't understand.
Having a wild guess: if gperl_filename_from_sv() gets an sv with the
utf8 flag off, then return the contents directly as the bytes, instead
of now spinning it up with sv_utf8_upgrade and down again with
g_filename_from_utf8.
The current sv_utf8_upgrade I guess interprets the bytes as latin1
always, so if your filename locale is not latin1 it won't be the same
when it comes back down to bytes. Does that sound likely? Is it the
claimed problem? Does anyone want latin1 strings as filenames turned
into utf8 if their locale is utf8? :-)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]