https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125451
--- Comment #13 from Drea Pinski <pinskia at gcc dot gnu.org> --- (In reply to Thomas Wolff from comment #12) > In cygwin, it's > typedef unsigned short wchar_t; > (for interworking with Windows) > and > int wcwidth(const wint_t wc); > > but an unsigned short must not be sign-extended into an int. But that is what the preprocessed source shows about the type that wcwidth takes. ``` # 70 "/usr/include/wchar.h" 3 ... int wcwidth (const wchar_t); ``` So the bug is in cygwin's headers I think.
