Re: ustring::validate() costs?



On Fri, 2005-12-02 at 15:04 +0100, Matthias Kaeppler wrote:
> 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.

Is ISO-8859-1 the default (German, I guess) encoding, or did you change
it?

> 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).

Personally, I don't know.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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