* libc/locale/locale.c (loadlocale): Fix typo in language and
territory evaluation.
This commit is contained in:
		@@ -1,3 +1,8 @@
 | 
			
		||||
2009-03-23  Corinna Vinschen  <corinna@vinschen.de>
 | 
			
		||||
 | 
			
		||||
	* libc/locale/locale.c (loadlocale): Fix typo in language and
 | 
			
		||||
	territory evaluation.
 | 
			
		||||
 | 
			
		||||
2009-03-20  Jeff Johnston  <jjohnstn@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* libc/include/sys/errno.h: Protect various non-standard errnos
 | 
			
		||||
 
 | 
			
		||||
@@ -391,16 +391,16 @@ loadlocale(struct _reent *p, int category)
 | 
			
		||||
 | 
			
		||||
      /* Don't use ctype macros here, they might be localized. */
 | 
			
		||||
      /* Language */
 | 
			
		||||
      if (c[0] <= 'a' || c[0] >= 'z'
 | 
			
		||||
	  || c[1] <= 'a' || c[1] >= 'z')
 | 
			
		||||
      if (c[0] < 'a' || c[0] > 'z'
 | 
			
		||||
	  || c[1] < 'a' || c[1] > 'z')
 | 
			
		||||
	return NULL;
 | 
			
		||||
      c += 2;
 | 
			
		||||
      if (c[0] == '_')
 | 
			
		||||
        {
 | 
			
		||||
	  /* Territory */
 | 
			
		||||
	  ++c;
 | 
			
		||||
	  if (c[0] <= 'A' || c[0] >= 'Z'
 | 
			
		||||
	      || c[1] <= 'A' || c[1] >= 'Z')
 | 
			
		||||
	  if (c[0] < 'A' || c[0] > 'Z'
 | 
			
		||||
	      || c[1] < 'A' || c[1] > 'Z')
 | 
			
		||||
	    return NULL;
 | 
			
		||||
	  c += 2;
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user