/usr/src/gcc-4.7/debian/locale-gen is in gcc-4.7-source 4.7.4-3ubuntu12.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #!/bin/sh
LOCPATH=`pwd`/locales
export LOCPATH
[ -d $LOCPATH ] || mkdir -p $LOCPATH
umask 022
echo "Generating locales..."
while read locale charset; do
case $locale in \#*) continue;; esac
[ -n "$locale" -a -n "$charset" ] || continue
echo -n " `echo $locale | sed 's/\([^.\@]*\).*/\1/'`"
echo -n ".$charset"
echo -n `echo $locale | sed 's/\([^\@]*\)\(\@.*\)*/\2/'`
echo -n '...'
if [ -f $LOCPATH/$locale ]; then
input=$locale
else
input=`echo $locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`
fi
localedef -i $input -c -f $charset $LOCPATH/$locale #-A /etc/locale.alias
echo ' done'; \
done <<EOF
# This file lists locales that the libstdc++ testsuite depends on
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
en_HK ISO-8859-1
en_PH ISO-8859-1
en_US ISO-8859-1
en_US.ISO-8859-1 ISO-8859-1
en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8
es_ES ISO-8859-1
es_MX ISO-8859-1
fr_FR ISO-8859-1
fr_FR@euro ISO-8859-15
is_IS ISO-8859-1
is_IS.UTF-8 UTF-8
it_IT ISO-8859-1
ja_JP.eucjp EUC-JP
se_NO.UTF-8 UTF-8
ta_IN UTF-8
zh_TW UTF-8
EOF
echo "Generation complete."
|