delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/11/24/09:35:22

Date: Wed, 24 Nov 1999 15:52:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Rainer Schnitker <rainer AT mathematik DOT uni-bielefeld DOT de>
cc: Andris Pavenis <pavenis AT lanet DOT lv>, djgpp-workers AT delorie DOT com
Subject: Re: AW: ANNOUNCE: rsxntdj 1.6 BETA
In-Reply-To: <NCBBKILGGKJJHOFDMONCOEMPCAAA.rainer@mathematik.uni-bielefeld.de>
Message-ID: <Pine.SUN.3.91.991124155157.4252S-100000@is>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019