Re: ustring::validate() costs?



Murray Cumming wrote:
[snip]

For example, on my notebook my
lcoale is set to ISO-8859-1 and if I create a file in Nautilus, then
Nautilus will encode the name in UTF-8 and not in my current locale
encoding.

[snip]

I am not an expert, but I guess this could be a bug in Nautilus or your
distribution. What are you using?

It's Ubuntu Hoary Hedgehog running GNOME 2.10.

But still, even if writing to the filesystem using the current locale would work, I still have the problem that already reading them breaks my program. Since Nautilus doesn't suffer from this issue (it correctly reads ISO-8859-1 encoded filenames and converts them to UTF-8 without complaining), I'm not so sure whether this is a library problem.

Apart from that, is the code I posted correct in terms of UTF-8-ifying filenames? I still don't see what I am doing wrong (if anything).

Regards,
Matthias




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]