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

Re: Lettere accentate e comando tr



>>>>> "CS" == Christian Surchi <csurchi@debian.org> writes:

CS> On Tue, Jan 19, 2016 at 08:50:09AM +0100, Marco Bodrato wrote:
>> Buongiorno!
>> 
>> stamane mi sono imbattuto in un problema col comando tr, col quale
>> vorrei "normalizzare" delle lettere accentate che ho in un
>> file. Purtroppo ci deve essere qualche problema con le
>> rappresentazioni...
>> 
>> In breve ottengo quanto segue:
>> 
>> $ echo "àèéìòù" | tr "àèéìòù" "aeeiou" ueuiuuuuuuuu
>> 
>> Dipenderà dal terminale? dalla shell? da tr? Qualche suggerimento?

CS> Dipende da tr, che ha problemi con tutto quello che non è
CS> ASCII. Ci sono bug aperti da anni e anni...

CS> http://unix.stackexchange.com/questions/228558/how-to-make-tr-aware-of-non-asciiunicode-characters

Use Emacs Lisp, Luke!

-- 
 /\           ___                                    Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____               African word
  //--\| | \|  |   Integralista GNUslamico            meaning "I can
\/                 coltivatore diretto di software       not install
     già sistemista a tempo (altrui) perso...                Debian"

Warning: gnome-config-daemon considered more dangerous than GOTO


Reply to: