Mail Archives: djgpp-workers/1999/11/24/09:35:22
On Tue, 23 Nov 1999, Rainer Schnitker wrote:
> No, it's a compiler bug. Djgpp uses 4 bytes for every character in the
> string.
>
>
> C file:
> unsigned short test[] = L"Hello world\n";
>
> djgpp output:
> .ascii "H\0\0\0e\0\0\0l\0\0\0l\0\0\0o\0\0\0
> \0\0\0w\0\0\0o\0\0\0r\0\0\0l\0\0\0d\0\0\0\12\0\0\0\0\0\0\0"
>
> emx/mingw32/cygnus output:
> .ascii "H\0e\0l\0l\0o\0 \0w\0o\0r\0l\0d\0\12\0\0\0"
If other versions of GCC do the right thing, it is probably a
configuration problem.
Andris, am I right that DJGPP is configured to produce 4 bytes for
multibyte characters, and if so, how difficult is it to configure
this aspect of DJGPP like Mingw and Cygwin?
- Raw text -