]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Handle %ls directive. From gnulib.
authorBruno Haible <bruno@clisp.org>
Thu, 26 Feb 2009 11:58:23 +0000 (11:58 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:16:02 +0000 (12:16 +0200)
gettext-runtime/intl/ChangeLog
gettext-runtime/intl/vasnprintf.c
gettext-runtime/libasprintf/ChangeLog
gettext-runtime/libasprintf/vasnprintf.c

index d406c50806081ee0842fad143e9492eecec06c74..95698f736a349b3f5ad6c86538f84c21d685d370 100644 (file)
@@ -1,3 +1,9 @@
+2009-02-26  Bruno Haible  <bruno@clisp.org>
+
+       Fix *printf behaviour regarding the %ls directive.
+       * vasnprintf.c (local_wcslen, VASNPRINTF): Handle
+       NEED_PRINTF_DIRECTIVE_LS.
+
 2009-02-23  Bruno Haible  <bruno@clisp.org>
 
        Fix invalid read past end of memory block.
index 9ff99055fb0616f15d825d92c22ba41df378b2e5..cda7946487a7a8c7612b24ebf7e49071ddf79e11 100644 (file)
@@ -211,7 +211,7 @@ local_strnlen (const char *string, size_t maxlen)
 # endif
 #endif
 
-#if !USE_SNPRINTF && HAVE_WCHAR_T && (WIDE_CHAR_VERSION || DCHAR_IS_TCHAR)
+#if (!USE_SNPRINTF || NEED_PRINTF_DIRECTIVE_LS) && HAVE_WCHAR_T && (WIDE_CHAR_VERSION || DCHAR_IS_TCHAR)
 # if HAVE_WCSLEN
 #  define local_wcslen wcslen
 # else
@@ -2104,7 +2104,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                  }
              }
 #endif
-#if !USE_SNPRINTF && HAVE_WCHAR_T
+#if (!USE_SNPRINTF || NEED_PRINTF_DIRECTIVE_LS) && HAVE_WCHAR_T
            else if (dp->conversion == 's'
 # if WIDE_CHAR_VERSION
                     && a.arg[dp->arg_index].type != TYPE_WIDE_STRING
index 32f21fb0e011a66a731a52c6ca09cf22579c8832..51652e69de6590b07a4273b88abb8fe1cc144911 100644 (file)
@@ -1,3 +1,9 @@
+2009-02-26  Bruno Haible  <bruno@clisp.org>
+
+       Fix *printf behaviour regarding the %ls directive.
+       * vasnprintf.c (local_wcslen, VASNPRINTF): Handle
+       NEED_PRINTF_DIRECTIVE_LS.
+
 2009-02-23  Bruno Haible  <bruno@clisp.org>
 
        Fix invalid read past end of memory block.
index 9ff99055fb0616f15d825d92c22ba41df378b2e5..cda7946487a7a8c7612b24ebf7e49071ddf79e11 100644 (file)
@@ -211,7 +211,7 @@ local_strnlen (const char *string, size_t maxlen)
 # endif
 #endif
 
-#if !USE_SNPRINTF && HAVE_WCHAR_T && (WIDE_CHAR_VERSION || DCHAR_IS_TCHAR)
+#if (!USE_SNPRINTF || NEED_PRINTF_DIRECTIVE_LS) && HAVE_WCHAR_T && (WIDE_CHAR_VERSION || DCHAR_IS_TCHAR)
 # if HAVE_WCSLEN
 #  define local_wcslen wcslen
 # else
@@ -2104,7 +2104,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                  }
              }
 #endif
-#if !USE_SNPRINTF && HAVE_WCHAR_T
+#if (!USE_SNPRINTF || NEED_PRINTF_DIRECTIVE_LS) && HAVE_WCHAR_T
            else if (dp->conversion == 's'
 # if WIDE_CHAR_VERSION
                     && a.arg[dp->arg_index].type != TYPE_WIDE_STRING