Hello,

On Tue, Jan 09, 2007 at 05:55:48PM +0200, [EMAIL PROTECTED] wrote:
> [Dropped debian-i18n from CC]
Also restricting to #405968

> -=| Nicolas François,  9.01.2007 11:32 |=-
> > On Tue, Jan 09, 2007 at 11:02:24AM +0200, [EMAIL PROTECTED] wrote:
> >> Your comment brings a good point:  always preserving the modifier,
> >> unless it is an exact match for @euro, might be a better strategy. 
> > 
> > Yes, it should be OK for all the locales found in my current
> > /usr/share/i18n/SUPPORTED.
> > 
> > I will send a patch latter.
> 
> Here's the perl variant (in case it is of any help). Only the first
> regex is changed:
> 
>   # "[EMAIL PROTECTED]" -> "ll_CC.UTF-8"
>   s/^([a-z]+)_([A-Z]+)(?:\.([EMAIL PROTECTED])?(?:@euro)?$/$1_$2.UTF-8/;
> 
>   # "[EMAIL PROTECTED]" -> "[EMAIL PROTECTED]"
>   s/^([a-z]+)_([A-Z]+)(?:\.([EMAIL PROTECTED])?@(.+)$/[EMAIL PROTECTED]/;

And here is the patch for utf8migrationtool.

Best Regards,
-- 
Nekral
--- utf8migrationtool.orig	2007-01-09 20:10:01.000000000 +0100
+++ utf8migrationtool	2007-01-09 20:25:42.000000000 +0100
@@ -81,6 +81,8 @@
     import sre
     match = sre.match("^(.*?)(\..*)?(@.*)?$", w['Login'].currentLocale)
     w['Login'].newLocale = match.group(1) + ".UTF-8"
+    if match.group(3) and match.group(3) != "@euro":
+        w['Login'].newLocale .= match.group(3)
 else:
     w['Login'].newLocale = w['Login'].currentLocale
 

Reply via email to