Testing confirms that this code works fine for locales containing @modifier. On Ubuntu 9.10 Karmic Desktop, I ran
# Install all available language packs (may take a while!)
sudo apt-get install ^language-pack-\*
# Test every locale on the system
for i in $(locale -a) ; do echo $i ; LANG=$i python2.6 -c "import locale ; print locale.getdefaultlocale()" || break ; done
This works (runs to completion, no python exceptions) with the patched python2.6 installed.
Testing confirms that this code works fine for locales containing @modifier. On Ubuntu 9.10 Karmic Desktop, I ran
# Install all available language packs (may take a while!) getdefaultlocal e()" || break ; done
sudo apt-get install ^language-pack-\*
# Test every locale on the system
for i in $(locale -a) ; do echo $i ; LANG=$i python2.6 -c "import locale ; print locale.
This works (runs to completion, no python exceptions) with the patched python2.6 installed.