Bug#234663: Patch for this bug : countrychooser: should not remove @euro modifier

2004-03-12 Thread Christian Perrier
Denis, do you think the proposed patch is OK for preserving modifier ?

I fear a bit writing bad shell code...and lack time for testing..


-- 


--- postinst.old2004-03-12 11:31:54.0 +0100
+++ postinst2004-03-12 11:32:20.0 +0100
@@ -101,6 +101,13 @@
fi
 fi
 
+# Keep track of the modifier we got from languagechooser
+if [ -n $DEFAULTLOCALE ]; then
+if (echo $DEFAULTLOCALE | grep -q @) ; then
+ MODIFIER_LANGUAGECHOOSER=`echo $DEFAULTLOCALE | cut -f2 [EMAIL PROTECTED]
+   fi
+fi
+
 # At this step we should have either xx, or xx_YY in LANGNAME
 if [ $LANGUAGE != C ]; then
STATE=1
@@ -188,6 +195,10 @@
if [ -n $CHARSET_LANGUAGECHOOSER ] ; then
   LOCALE=${LOCALE}.${CHARSET_LANGUAGECHOOSER}
fi
+   # If we inherited a modifier form languagechooser, keep it
+   if [ -n $MODIFIER_LANGUAGECHOOSER ] ; then
+  [EMAIL PROTECTED]
+   fi
db_set $localecode ${LOCALE}
log $localecode = '${LOCALE}'
 fi


Bug#234663: Patch for this bug : countrychooser: should not remove @euro modifier

2004-03-12 Thread Denis Barbier
tags 234663 + pending
thanks

On Fri, Mar 12, 2004 at 11:35:25AM +0100, Christian Perrier wrote:
 Denis, do you think the proposed patch is OK for preserving modifier?

No idea, I already committed a simpler fix ;)

Denis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#234663: Patch for this bug : countrychooser: should not remove @euro modifier

2004-03-12 Thread Christian Perrier
Quoting Denis Barbier ([EMAIL PROTECTED]):

 No idea, I already committed a simpler fix ;)

Which was?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]