[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r6187 - in /fsf/trunk/libc: ./ localedata/ localedata/locales/ string/ sysdeps/posix/
- To: commits@xxxxxxxxxx
- Subject: [commits] r6187 - in /fsf/trunk/libc: ./ localedata/ localedata/locales/ string/ sysdeps/posix/
- From: eglibc@xxxxxxxxxx
- Date: Sat, 17 May 2008 07:05:23 -0000
Author: eglibc
Date: Sat May 17 00:05:21 2008
New Revision: 6187
Log:
Import glibc-mainline for 2008-05-17
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/localedata/ChangeLog
fsf/trunk/libc/localedata/locales/iso14651_t1_common
fsf/trunk/libc/string/strcasestr.c
fsf/trunk/libc/sysdeps/posix/getaddrinfo.c
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sat May 17 00:05:21 2008
@@ -1,3 +1,10 @@
+2008-05-16 Ulrich Drepper <drepper@xxxxxxxxxx>
+
+ * string/strcasestr.c (CMP_FUNC): Use __strncasecmp, not strncasecmp.
+
+ * sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_r
+ lookup, don't assign canon unconditionally.
+
2008-05-14 Ulrich Drepper <drepper@xxxxxxxxxx>
* string/Makefile (distribute): Add str-two-way.h.
Modified: fsf/trunk/libc/localedata/ChangeLog
==============================================================================
--- fsf/trunk/libc/localedata/ChangeLog (original)
+++ fsf/trunk/libc/localedata/ChangeLog Sat May 17 00:05:21 2008
@@ -1,3 +1,7 @@
+2008-05-16 Ulrich Drepper <drepper@xxxxxxxxxx>
+
+ * locales/iso14651_t1_common: Remove duplicate U0C7B definition.
+
2008-05-14 Ulrich Drepper <drepper@xxxxxxxxxx>
[BZ #6438]
Modified: fsf/trunk/libc/localedata/locales/iso14651_t1_common
==============================================================================
--- fsf/trunk/libc/localedata/locales/iso14651_t1_common (original)
+++ fsf/trunk/libc/localedata/locales/iso14651_t1_common Sat May 17 00:05:21 2008
@@ -3416,7 +3416,8 @@
<U0C15> <t-ka>;<BAS>;<MIN>;IGNORE
<U0C16> <t-kha>;<BAS>;<MIN>;IGNORE
<U0C17> <t-ga>;<BAS>;<MIN>;IGNORE
-<U0C7B> <t-gga>;<BAS>;<MIN>;IGNORE
+#XXX This is wrong since there is already a definition for U0C7B.
+#<U0C7B> <t-gga>;<BAS>;<MIN>;IGNORE
<U0C18> <t-gha>;<BAS>;<MIN>;IGNORE
<U0C19> <t-nga>;<BAS>;<MIN>;IGNORE
<U0C1A> <t-ca>;<BAS>;<MIN>;IGNORE
Modified: fsf/trunk/libc/string/strcasestr.c
==============================================================================
--- fsf/trunk/libc/string/strcasestr.c (original)
+++ fsf/trunk/libc/string/strcasestr.c Sat May 17 00:05:21 2008
@@ -46,7 +46,7 @@
&& ((h_l) = (j) + (n_l)))
#define CANON_ELEMENT(c) TOLOWER (c)
#define CMP_FUNC(p1, p2, l) \
- strncasecmp ((const char *) (p1), (const char *) (p2), l)
+ __strncasecmp ((const char *) (p1), (const char *) (p2), l)
#include "str-two-way.h"
#undef strcasestr
Modified: fsf/trunk/libc/sysdeps/posix/getaddrinfo.c
==============================================================================
--- fsf/trunk/libc/sysdeps/posix/getaddrinfo.c (original)
+++ fsf/trunk/libc/sysdeps/posix/getaddrinfo.c Sat May 17 00:05:21 2008
@@ -729,7 +729,8 @@
if (status == NSS_STATUS_SUCCESS)
{
- canon = (*pat)->name;
+ if ((req->ai_flags & AI_CANONNAME) != 0 && canon == NULL)
+ canon = (*pat)->name;
while (*pat != NULL)
pat = &((*pat)->next);
@@ -953,7 +954,7 @@
return -EAI_IDN_ENCODE;
}
/* In case the output string is the same as the input
- string no new string has been allocated. Otherwise
+ string no new string has been allocated and we
make a copy. */
if (out == canon)
goto make_copy;