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

Bug#316003: Patch to avoid possible deselection of the currently selected locale



Quoting Christian Perrier (bubulle@debian.org):
> tags 316003 patch
> thanks
> 
> The attached patch  should avoid listing the current default locale in
> the additionnal locales to generate, thus not allowing users to
> inadvertently unselect it.
> 
> To be checked....


*this* patch is better...


--- localechooser.old	2005-12-19 19:18:03.950097662 +0100
+++ localechooser	2005-12-19 19:21:52.572584014 +0100
@@ -525,7 +525,7 @@
 	# Ask for additional locales to be generated
 	CHOICES=
 	# *.UTF-8@euro locales are deprecated; don't use them.
-	for i in $(grep -v '\.UTF-8@euro$' $SUPPORTEDLOCALES); do
+	for i in $(grep -v '\.UTF-8@euro$' $SUPPORTEDLOCALES | grep -v $localecode); do
 		if [ -z "$CHOICES" ]; then
 			CHOICES="$i"
 		else

Reply to: