Tux

...making Linux just a little more fun!

Can anyone with an Indian locale test these for me?

Suramya Tomar [security at suramya.com]


Fri, 11 Sep 2009 07:27:13 +0530

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


Top    Back


Jimmy O'Regan [joregan at gmail.com]


Fri, 11 Sep 2009 03:03:29 +0100

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.


Top    Back


Suramya Tomar [security at suramya.com]


Fri, 11 Sep 2009 07:41:49 +0530

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: http://www.suramya.com
-------------------------------------------------
************************************************************


Top    Back