Date: Wed, 24 Nov 1999 15:52:43 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Rainer Schnitker cc: Andris Pavenis , djgpp-workers AT delorie DOT com Subject: Re: AW: ANNOUNCE: rsxntdj 1.6 BETA In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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?