Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] multibyte tr (or i18n coreutils)



Hmm,
I haver never used tr utility, but using the correct code in Perl
works just as well:

echo "ššš" | perl -Mutf8 -CS -pe
'tr/abcčdďeěfghiíjklmnňoópqrřsštťuúůvwxyýzž/222233333444455566666777777888888999999/;'
777

(using dev-lang/perl-5.8.8-r8 on Gentoo, locale is partially ja_JP.UTF-8)

Cheers,
Kalin.


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links