You are not logged in.
Pages: 1
Topic closed
I've created an international English locale that uses a mix of ISO and POSIX standards with some tweaks for most formats. I've packaged it on my system so that I can add it to /etc/locale-gen, generate it with /usr/sbin/locale-gen, and set it via /etc/rc.conf.
I've run into a problem with Xlib when running the X server and various applications in it:
urxvt: the locale is not supported by Xlib, working without locale support.
I can avoid this problem by setting LC_CTYPE to one of the standard locales (e.g. by exporting it in bash_profile), as described here, but this feels like a kludge.
The locale that I've created copies the LC_CTYPE from the same place that en_US does.* The LC_CTYPE is therefore identical and it should be "supported" by Xlib. I've even tried changing the name of the custom locale to variants of en_US@foo to see if XLib would recognize it.
There is nothing wrong with the formatting of the file. All non-Xlib applications appear to work as expected without the LC_CTYPE environment variable. It is correctly recognized by `locale -a`:
en_XX.utf8@POSIX
(XX is a country code reserved for private use, so it's an ISO-compliant name)
I'm running out of ideas. Creating a locale is starting to feel like some super secret initiation ritual. There must be some way to make Xlib recognize that it is a fully standard LC_CTYPE locale. Any suggestions or relevant information would be appreciated.
Btw, I'll probably release this as a package if I'm able to get around this (hopefully) final issue. I'm quite happy with the locale so far.
edit
I've found this:
http://rbtcollins.wordpress.com/2010/02 … to-ubuntu/
https://aur.archlinux.org/packages.php?ID=19997
I haven't actually tested it yet but it seems that if libx11 is already installed I could modify those files to support the custom locale. That doesn't really solve the problem though because any modifications would be removed when libx11 is (re-)installed or upgraded.
*sigh*
* In /usr/share/i18n/locales, en_US includes the following section:
LC_CTYPE
copy "en_GB"
END LC_CTYPE
en_GB in turn copies its LC_CTYPE section from "i18n". In my custom locale, I've tried copying "i18n" and "en_US". Both work but neither is recognized by Xlib.
Last edited by Xyne (2011-08-15 16:30:42)
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Pages: 1
Topic closed