From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada.Locales pseudo-string types
Date: Thu, 9 Aug 2012 16:15:16 -0500
Date: 2012-08-09T16:15:16-05:00 [thread overview]
Message-ID: <k0199a$ijt$1@munin.nbi.dk> (raw)
In-Reply-To: a6439817-c750-4c5e-a0db-2c37331b474e@googlegroups.com
"Michael Rohan" <michael@zanyblue.com> wrote in message
news:a6439817-c750-4c5e-a0db-2c37331b474e@googlegroups.com...
...
> It this really the all that's defined for Locales! At least the language
> code is
> of the correct length 1 .. 3, however the country code should also be 1 ..
> 3,
These codes come from other ISO standards, used in many applications
(including Posix). The lengths and definitions are exactly as those other
standards (ISO 639-3 and ISO 3166-1) prescribe. You can look up the country
and language codes on-line (both of those standards are public). See the
list of other standards referenced by the Ada Standard for details.
...
>Looks like this probably needs to be adjusted Language 1 .. 3 is OK, but
>Country
> should really be Territory 1 .. 3, e.g., Latin America has the code "419".
Umm, no it doesn't.
> It is also missing a definition for the Script, e.g., Simplified Chinese
> as
> spoken in China is zh_Hans_CN, and Serbian has two variants for the same
> territory:
That's part of the language code. Again, see the relevant ISO standards.
...
>There's nothing here to adjust locale, etc.
That's intentional: not all systems allow that.
> I guess this is start on making Ada locale aware but it looks like there's
> a lot of additional work needed.
Of course, having this information doesn't necessarily allow you to do
anything with it. There was absolutely no agreement on the value of having
any such capabilities in the Standard (and capabilities of host OSes vary
wildly). But just retrieving the current information was easy enough to
support, and it allows programming in-house solutions on top of it. (For
instance, the original requirement came from Canada, which needs to support
both English and French in applications, but doesn't necessarily want to go
beyond that.)
Randy.
Randy.
next prev parent reply other threads:[~2012-08-15 2:48 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-06 16:45 Ada.Locales pseudo-string types Marius Amado-Alves
2012-08-06 17:10 ` Marius Amado-Alves
2012-08-06 19:15 ` J-P. Rosen
2012-08-06 19:34 ` Simon Wright
2012-08-06 20:07 ` Marius Amado-Alves
2012-08-06 20:57 ` Simon Wright
2012-08-06 21:09 ` Vasiliy Molostov
2012-08-06 23:07 ` Adam Beneschan
2012-08-06 23:23 ` Vasiliy Molostov
2012-08-06 23:46 ` Adam Beneschan
2012-08-07 1:17 ` Vasiliy Molostov
2012-08-07 7:20 ` Dmitry A. Kazakov
2012-08-07 7:43 ` Jacob Sparre Andersen
2012-08-09 20:47 ` Randy Brukardt
2012-08-07 8:44 ` Marius Amado-Alves
2012-08-07 13:14 ` Marius Amado-Alves
2012-08-07 15:42 ` Adam Beneschan
2012-08-07 18:22 ` Marius Amado-Alves
2012-08-07 20:10 ` Adam Beneschan
2012-08-07 20:42 ` Marius Amado-Alves
2012-08-07 21:38 ` Adam Beneschan
2012-08-08 7:04 ` Niklas Holsti
2012-08-08 7:18 ` Dmitry A. Kazakov
2012-08-08 7:37 ` Niklas Holsti
2012-08-08 8:09 ` Dmitry A. Kazakov
2012-08-08 11:14 ` Niklas Holsti
2012-08-08 11:59 ` Dmitry A. Kazakov
2012-08-08 14:01 ` Niklas Holsti
2012-08-09 7:48 ` Dmitry A. Kazakov
2012-08-09 8:31 ` Niklas Holsti
2012-08-09 12:17 ` Dmitry A. Kazakov
2012-08-09 15:25 ` Niklas Holsti
2012-08-09 16:43 ` Dmitry A. Kazakov
2012-08-08 8:28 ` J-P. Rosen
2012-08-08 11:35 ` Niklas Holsti
2012-08-08 14:05 ` Georg Bauhaus
2012-08-08 7:32 ` J-P. Rosen
2012-08-08 8:17 ` Niklas Holsti
2012-08-08 8:33 ` J-P. Rosen
2012-08-08 11:44 ` Niklas Holsti
2012-08-09 21:00 ` Randy Brukardt
2012-08-08 8:35 ` Dmitry A. Kazakov
2012-08-08 9:32 ` Marius Amado-Alves
2012-08-08 10:11 ` Dmitry A. Kazakov
2012-08-08 11:28 ` Marius Amado-Alves
2012-08-08 11:30 ` Marius Amado-Alves
2012-08-08 11:35 ` Marius Amado-Alves
2012-08-08 12:24 ` Dmitry A. Kazakov
2012-08-08 11:52 ` Niklas Holsti
2012-08-08 13:21 ` Dmitry A. Kazakov
2012-08-08 9:07 ` Marius Amado-Alves
2012-08-07 20:43 ` Marius Amado-Alves
2012-08-07 21:59 ` Robert A Duff
2012-08-07 22:19 ` Adam Beneschan
2012-08-08 0:37 ` Robert A Duff
2012-08-07 15:26 ` Adam Beneschan
2012-08-07 18:07 ` Marius Amado-Alves
2012-08-07 17:51 ` Simon Wright
2012-08-06 20:00 ` Marius Amado-Alves
2012-08-06 19:49 ` Jacob Sparre Andersen
2012-08-06 20:11 ` Marius Amado-Alves
2012-08-06 17:37 ` Michael Rohan
2012-08-06 18:23 ` Marius Amado-Alves
2012-08-06 19:36 ` Michael Rohan
2012-08-09 21:15 ` Randy Brukardt [this message]
2012-08-07 5:57 ` Jeffrey R. Carter
2012-08-07 15:46 ` Adam Beneschan
2012-08-07 17:51 ` Jeffrey R. Carter
2012-08-09 21:17 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox