From: Brian D. <br...@de...> - 2006-04-29 07:26:40
|
Erik de Castro Lopo wrote: > The required behaviour for printf changed slightly with the ISO 1999 > C standard. The %a conversion specifier is just one of these C99 > features that the microsoft C library does not support even 7 years > after the standard was released. > > In this respect at least, the bahaviour of printf on Linux is the > correct one. > > So this is actually a bug, but not a bug in MinGW, rather it is a > bug in the windows run time library. Yes. MSVCRT doesn't really support a lot of C99. Some of it is faked via supplimental functions in libmingwex, but in the case of printf() you get whatever is in MSVCRT, which is C89 apparently: http://msdn.microsoft.com/library/en-us/vclib/html/_crt_format_specification_fields_.2d_.printf_and_wprintf_functions.asp http://msdn.microsoft.com/library/en-us/vclib/html/_crt_printf_type_field_characters.asp Brian |