+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.
# 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
}
}
#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
+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.
# 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
}
}
#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