-=| Martin-Éric Racine, 9.01.2007 01:39 |=- > Taking Catalan as example, the migration would be handled as from > ca_ES@valencia to ca_ES.UTF-8, so ~/.dmrc content must be manually > changed to ca_ES.UTF-8@valencia afterwards. Why can't this be automated? Requirement to hand-change ~/.dmrc makes the automated tool less "automated". In perl, that would be: # "ll_CC[.CODESET]" -> "ll_CC.UTF-8" s/^([a-z]+)_([A-Z]+)(?:\.([^@]+)?$/$1_$2.UTF-8/; # "ll_CC[.CODESET]@modifier" -> "ll_CC.UTF-8@modifier" s/^([a-z]+)_([A-Z]+)(?:\.([^@]+)?@(.+)$/$1_$2.UTF-8\@$3/; The [.CODESET] part in comments means that ".CODESET" is optional. Someone using python might convert these appropriately. dam -- Damyan Ivanov Modular Software Systems dam@modsoftsys.com phone +359(2)928-2611, 929-3993 fax +359(2)920-0994 mobile +359(88)856-6067 dam@jabber.minus273.org/Gaim
Attachment:
signature.asc
Description: OpenPGP digital signature