[Mingw-w64-public] Duplication of time functions in winpthreads

2014-01-06 Thread Michael Cronenworth
Hello, I noticed that localtime_r()/gmtime_r()/ctime_r() are present in winthreads when they were not in the old-pthreads implementation. These routines are already available through time.h. Why are they also present in pthread.h? Thanks, Michael -

[Mingw-w64-public] Encoding problem with __FILE__ macro

2014-01-06 Thread lh_mouse
Hi guys, I have noticed that in mingw-gcc, the __FILE__ macro expands using the system's code page encoding (e.g. code page 936 on Simplified Chinese Windows systems). I will describe how it causes problems: When a mbcs literal is used in the source file, GCC does not check whether it is lega