From: Jano <nono@celes.unizar.es>
Subject: Re: Ada, Gnat and Unicode
Date: Fri, 24 Oct 2003 17:09:24 +0200
Date: 2003-10-24T17:09:24+02:00 [thread overview]
Message-ID: <MPG.1a035f0a212ec08898977d@News.CIS.DFN.DE> (raw)
In-Reply-To: 3F984DDD.9040808@comcast.net
Robert I. Eachus dice...
> Jano wrote:
> > Robert I. Eachus dice...
>
> > As you may be seeing now, I want to scan a folder and transform the
> > filenames into UTF8. That's fine for me which know that I'm getting
> > Latin1 encoded strings from the Directory_Operations package, and any
> > metadata entered by the user. But I was wondering what would happen to a
> > Chinese user (not that I foresee any usage of my program in wide
> > deployment, but when faced with the problem one *must* know ;)
>
> Remember my advice about canonicalization. If you get Unicode or UTF-8
> file names from the OS, they may or may not be in a canonical form. If
> not, get the OS to do it for you. And of course, this information is OS
> specific. You won't really care what the OS's definition of canonical
> form is, just whether the strings you are getting are in that form, and
> if not how to call the OS to do that.
Ok, I see. In the end that's the outcome I didn't want to hear but the
one I expected.
> Yes, it refers to source representation, but if you think about it for a
> second, the source representation of non-Latin1 characters is an issue
> for Character and String literals. Otherwise the compiler doesn't care
> what Character type you use in your program.
I was referring to that too :)
Thanks!
--
-------------------------
Jano
402450.at.cepsz.unizar.es
-------------------------
next prev parent reply other threads:[~2003-10-24 15:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-23 14:48 Ada, Gnat and Unicode Jano
2003-10-23 15:49 ` Robert I. Eachus
2003-10-23 17:38 ` Jano
2003-10-23 21:54 ` Robert I. Eachus
2003-10-24 15:09 ` Jano [this message]
2003-10-24 4:01 ` Steve
2003-10-24 15:07 ` Jano
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox