4

I was curious to dig a little deeper into this question and realised that I don't know where to look for language pack templates. But beyond basic high-level discussion in locale-gen, I'm at a bit of a loss to know where to look for them.

I'm particularly interested to look at how collation rules are constructed and what they look like in practical source code for well known locales such as en_US.utf-8 and en_GB-utf-8.

Are these largely shared between distributions? And where are they maintained in source code?

Unfortunately google is giving me complete blanks on this one.

1 Answer 1

4

For distributions using the GNU C library, the locale data is part of that, in the localedata directory. You’ll find en_GB defined in locales/en_GB, en_US in locales/en_US. The collation rules for both are in locales/iso14651_t1 which is a thin wrapper around locales/iso14651_t1_common.

1
  • Oh. I didn't realise this ordering was based on an ISO. Now I understand why so many locals now have similar collation rules. Commented Jun 26 at 19:11

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.