+2007-06-11 Bruno Haible <bruno@clisp.org>
+
+ * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
+ replacement string.
+ Reported by Eric Blake.
+
2007-06-10 Bruno Haible <bruno@clisp.org>
Prepare vasnprintf code for use with Unicode strings.
if (ap->a.a_u8_string == NULL)
{
static const uint8_t u8_null_string[] =
- { '(', 'N', 'U', 'L', 'L', 0 };
+ { '(', 'N', 'U', 'L', 'L', ')', 0 };
ap->a.a_u8_string = u8_null_string;
}
break;
if (ap->a.a_u16_string == NULL)
{
static const uint16_t u16_null_string[] =
- { '(', 'N', 'U', 'L', 'L', 0 };
+ { '(', 'N', 'U', 'L', 'L', ')', 0 };
ap->a.a_u16_string = u16_null_string;
}
break;
if (ap->a.a_u32_string == NULL)
{
static const uint32_t u32_null_string[] =
- { '(', 'N', 'U', 'L', 'L', 0 };
+ { '(', 'N', 'U', 'L', 'L', ')', 0 };
ap->a.a_u32_string = u32_null_string;
}
break;
const char* precision_start;
const char* precision_end;
size_t precision_arg_index;
- char conversion; /* d i o u x X f e E g G c s p n U % but not C S */
+ char conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */
size_t arg_index;
}
char_directive;
const uint8_t* precision_start;
const uint8_t* precision_end;
size_t precision_arg_index;
- uint8_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */
+ uint8_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */
size_t arg_index;
}
u8_directive;
const uint16_t* precision_start;
const uint16_t* precision_end;
size_t precision_arg_index;
- uint16_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */
+ uint16_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */
size_t arg_index;
}
u16_directive;
const uint32_t* precision_start;
const uint32_t* precision_end;
size_t precision_arg_index;
- uint32_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */
+ uint32_t conversion; /* d i o u x X f F e E g G a A c s p n U % but not C S */
size_t arg_index;
}
u32_directive;