changeset 30000:9e66ce7a81a8

inet_pton.c: use locale-independent tolower * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>. (inet_pton6): Use c_tolower rather than tolower. * modules/inet_pton (Depends-on): Add c-ctype.
author Jim Meyering <meyering@redhat.com>
date Wed, 06 Aug 2008 11:49:11 +0200
parents 032e4bdcd522
children 00a1bfae3c8a
files ChangeLog lib/inet_pton.c modules/inet_pton
diffstat 3 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Aug 06 10:27:53 2008 +0200
+++ b/ChangeLog	Wed Aug 06 11:49:11 2008 +0200
@@ -1,3 +1,10 @@
+2008-08-06  Jim Meyering  <meyering@redhat.com>
+
+	inet_pton.c: use locale-independent tolower
+	* lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
+	(inet_pton6): Use c_tolower rather than tolower.
+	* modules/inet_pton (Depends-on): Add c-ctype.
+
 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
 
 	* lib/poll.c (poll): Avoid division when timeout is 0, cache
--- a/lib/inet_pton.c	Wed Aug 06 10:27:53 2008 +0200
+++ b/lib/inet_pton.c	Wed Aug 06 11:49:11 2008 +0200
@@ -37,7 +37,7 @@
 /* Specification.  */
 #include <arpa/inet.h>
 
-#include <ctype.h>
+#include <c-ctype.h>
 #include <string.h>
 #include <errno.h>
 
@@ -179,7 +179,7 @@
   curtok = src;
   saw_xdigit = 0;
   val = 0;
-  while ((ch = tolower (*src++)) != '\0')
+  while ((ch = c_tolower (*src++)) != '\0')
     {
       const char *pch;
 
--- a/modules/inet_pton	Wed Aug 06 10:27:53 2008 +0200
+++ b/modules/inet_pton	Wed Aug 06 11:49:11 2008 +0200
@@ -6,6 +6,7 @@
 m4/inet_pton.m4
 
 Depends-on:
+c-ctype
 socklen
 sys_socket
 arpa_inet