This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
localedef is a fine tool -- it generates a single locale with the requested parameters and that's it. but in practice, distro maintainers need something higher level: they need to generate all the locales that the system supports. how do they do that today ? lots-o-pain: - Debian: sets of wrapper scripts including one called `locale-gen` that reads /etc/locale.gen and then takes care of generating all the locales listed there via localedef; if no locales are listed, manually grub around installed glibc files and parse their content/meaning to come up with the list to generate - Ubuntu: same deal pretty much as Debian - Gentoo: same high-level concept as Debian (script+config), but more user friendly interface and runs in parallel - Fedora/RedHat: runs localedef by hand in rpm spec file - Arch Linux: same deal as Debian, but diff scripts i assume other distros fall into similar buckets. can we standardize this in glibc itself ? either in a new program (let's call it "locale-gen" since distros that support it have standardized on that), or in localdef itself. requirements: - generate in parallel (generating 400+ locales in serial is sloooow) - respect a config file (let's just use /etc/locale.gen as it too is standard) - option to automatically generate all available locales (in case config is empty) - option to generate locales with the user-friendly name e.g. this is good: locale-gen en_US.UTF-8 e.g. this is bad: localedef -i en_US -f UTF-8 en_US.UTF-8 nice-to-have: - option to incrementally sync locale state to a config by either deleting or adding locales thoughts ? -mike
Attachment:
signature.asc
Description: Digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |