[haiku-development] Re: Compatibility breakage: wchar_t -> long int

  • From: Joseph Prostko <joe.prostko+haiku@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 22 Jun 2009 19:53:28 -0400

On Mon, Jun 22, 2009 at 6:01 PM, Ingo Weinhold<ingo_weinhold@xxxxxx> wrote:
>
> -------- Original-Nachricht --------
>> Datum: Mon, 22 Jun 2009 23:11:59 +0200
>> Von: Oliver Tappe <zooey@xxxxxxxxxxxxxxx>
>
>>
>> Locally, I have changed our gcc-configurations to break with
>> BeOS-"compatibility" and defined wchar_t as "long int". This made quite a
>> number of functions work all of a sudden (most notably, the conversion
>> functions between multi-bytes and wide-characters).
>
> Great! I wonder why "long int" and not just "int", though.

Yeah, as per our limits.h, int should do the job.  I know the
standards set long int as the first minimum level required to support
a 32 bit range though, so maybe Oliver is just playing it safe?

- joe

Other related posts: