Tests for module 'unicase/u16-is-uppercase'.
[gnulib.git] / lib / vasnprintf.c
index 129d7de..fa43ca6 100644 (file)
@@ -1,5 +1,5 @@
 /* vsprintf with automatic memory allocation.
-   Copyright (C) 1999, 2002-2008 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2002-2009 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -210,7 +210,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 && !defined IN_LIBINTL)) && HAVE_WCHAR_T && (WIDE_CHAR_VERSION || DCHAR_IS_TCHAR)
 # if HAVE_WCSLEN
 #  define local_wcslen wcslen
 # else
@@ -2103,7 +2103,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                  }
              }
 #endif
-#if !USE_SNPRINTF && HAVE_WCHAR_T
+#if (!USE_SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T
            else if (dp->conversion == 's'
 # if WIDE_CHAR_VERSION
                     && a.arg[dp->arg_index].type != TYPE_WIDE_STRING
@@ -4588,7 +4588,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                        {
 #  if WIDE_CHAR_VERSION
                          /* ISO C says about %ls in fwprintf:
-                              "If the precision is not specied or is greater
+                              "If the precision is not specified or is greater
                                than the size of the array, the array shall
                                contain a null wide character."
                             So if there is a precision, we must not use
@@ -4602,7 +4602,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                            tmp_length = local_wcslen (arg);
 #  else
                          /* ISO C says about %ls in fprintf:
-                              "If a precision is specied, no more than that
+                              "If a precision is specified, no more than that
                                many bytes are written (including shift
                                sequences, if any), and the array shall contain
                                a null wide character if, to equal the
@@ -4621,7 +4621,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                        {
 # if WIDE_CHAR_VERSION
                          /* ISO C says about %s in fwprintf:
-                              "If the precision is not specied or is greater
+                              "If the precision is not specified or is greater
                                than the size of the converted array, the
                                converted array shall contain a null wide
                                character."