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

[PATCH] Re: Sorting of the language list



On Thu, Jul 05, 2001 at 02:11:02PM +0200, Kaare Olsen wrote:
> On Wed, 4 Jul 2001 23:03:08 +0200, Marcin Owsiany wrote:
> 
> >On Wed, Jul 04, 2001 at 05:42:32PM +0200, Kaare Olsen wrote:
>  
> >> Oh!  Is the language slice used elsewhere?  If not, we could
> >> change the first letter of all the (European) language names
> >> to be in upper case
> >
> >Please don't do that. (At least not without changing them back
> >to appropriate case on the fly.) 
> 
> _I_ won't change anything. :-)
> 
> >For example in Polish,
> >adjectives may only start with a lower case letter.
> 
> As in Danish...  But since this list only contains one word in each of the respective languages, I don't think it 
> would do any "harm".  Anyway, it's not a big deal - I can live with the list as it is (until the bug is either fixed, or 
> Perl is updated on klecker).

Here is a workaround which seems to work with perl 5.005.

Denis
Index: languages.wml
===================================================================
RCS file: /cvs/webwml/webwml/english/template/debian/languages.wml,v
retrieving revision 1.83
diff -u -r1.83 languages.wml
--- languages.wml	2001/07/02 23:22:30	1.83
+++ languages.wml	2001/07/07 20:45:07
@@ -115,7 +115,10 @@
     $second =~ s/Ελληνικά/ELLYNIKA/; # epsilon lambda lambda eta nu iota kappa alpha-with-tonos
     $second =~ s/^&/_&/; # put remaining entities last in the list
   }
-  return $first cmp $second;
+  #    There seems to be a bug with localization in Perl 5.005 so we
+  #    need those extra variables.
+  my ($ufirst, $usecond) = (uc($first), uc($second));
+  return $ufirst cmp $usecond;
 }
 
 sub languages {

Reply to: