Skip to contentSkip to conversation

make with po files fails due to missing C.UTF-8 locale

DISCUSSION Andrey Borzenkov 1 participant 1 message Jan 25, 2014

lore
Share & tools
lore
#0 lore raw

make[2]: Вход в каталог `/home/bor/build/grub/po'
LC_ALL=C.UTF-8 msginit -i ./grub.pot --no-translator -l en@cyrillic -o - 2>/dev/null | LC_ALL=C.UTF-8 msgconv -t UTF-8 | LC_ALL=C.UTF-8 msgfilter -o ./[email protected] -i - sed -f ./cyrillic.sed
msgfilter: warning: Locale charset "ANSI_X3.4-1968" is different from
input file charset "UTF-8".
Output of 'msgfilter' might be incorrect.
Possible workarounds are:
- Set LC_ALL to a locale with encoding UTF-8.
- Convert the translation catalog to ASCII using 'msgconv',
then apply 'msgfilter',
then convert back to UTF-8 using 'msgconv'.
/usr/bin/sed: file ./cyrillic.sed line 13: strings for `y' command are different lengths
msgfilter: sed subprocess terminated with exit code 1
make[2]: *** [[email protected]] Ошибка 1
make[2]: Выход из каталога `/home/bor/build/grub/po'
make[1]: *** [[email protected]] Ошибка 2
make[1]: Выход из каталога `/home/bor/build/grub/po'

The problem is, C.UTF-8 seems to be Debian specific; neither openSUSE (which I have) nor Fedora (as can be seen from
https://bugzilla.redhat.com/show_bug.cgi?id=902094‎) provide it.

May be we should not force any specific locale and just mention in INSTALL that during installation locale with UTF-8 codeset should be used.