...making Linux just a little more fun!
Suramya Tomar [security at suramya.com]
Hi Jimmy,
> One of our users is complaining that our transliterator doesn't work; > the few of us who have tested it all find that it works for us. Now, > he says it only works because our locales are wrong(?). I'm just > wondering if anyone other than him can get the incorrect result: i.e., > that 'ा' fails to transliterate to 'ા' -- I reproduced the same test > using standard tools belo, because they do the same thing as our > transliterator.
Just saw this email, so tried it out on my system. This is what I got:
suramya@Wyrm:/usr/lib/locale$ echo $LANG en_IE.UTF-8 suramya@Wyrm:/usr/lib/locale$ echo राम|tr 'राम' 'રામ' રામ suramya@Wyrm:/usr/lib/locale$ echo राम|sed -e 's/र/ર/g'|sed -e 's/ा/ા/g' |sed -e 's/म/મ/g' રામ suramya@Wyrm:/usr/lib/locale$ echo राम|perl /home/suramya/Temp/test.pl રામ suramya@Wyrm:/usr/lib/locale$
It seems to be working fine for me... Hope this helps.
- Suramya
Jimmy O'Regan [joregan at gmail.com]
2009/9/11 Suramya Tomar <security@suramya.com>:
> Hi Jimmy, > >> One of our users is complaining that our transliterator doesn't work; >> the few of us who have tested it all find that it works for us. Now, >> he says it only works because our locales are wrong(?). I'm just >> wondering if anyone other than him can get the incorrect result: i.e., >> that 'ा' fails to transliterate to 'ા' -- I reproduced the same test >> using standard tools belo, because they do the same thing as our >> transliterator. > > Just saw this email, so tried it out on my system. This is what I got: > > suramya@Wyrm:/usr/lib/locale$ echo $LANG > en_IE.UTF-8 > suramya@Wyrm:/usr/lib/locale$ echo राम|tr 'राम' 'રામ' > રામ
Thanks. We got to the bottom of it eventually - I think I forwarded the mail, after I saw this month's mailbag? - but in the end, the problem was that in the i18n database, matras were incorrectly defined as punctuation. Anyone who does experience the problem should probably just upgrade their locales package.
Suramya Tomar [security at suramya.com]
Hi Jimmy,
> Thanks. We got to the bottom of it eventually - I think I forwarded > the mail, after I saw this month's mailbag? - but in the end, the > problem was that in the i18n database, matras were incorrectly defined > as punctuation. Anyone who does experience the problem should probably > just upgrade their locales package.
I didn't see your mail that the problem was resolved. Glad you managed to get to work though.
- Suramya
-- ------------------------------------------------- Name : Suramya Tomar Homepage URL: https://www.suramya.com -------------------------------------------------************************************************************