[haiku-development] Re: BString and UTF-8

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 03 Dec 2011 14:43:53 +0100

Le 03/12/2011 00:16, Axel Dörfler a écrit :
> On 12/03/2011 12:09 AM, Michael Bridgers wrote:
>> Keep in mind that all valid C-strings are a subset of valid UTF-8
>> strings. All valid C-strings will continue to work as they currently do.
> 
> You mix up C strings with ANSI strings. C is just a language, and C
> strings can hold any byte but a zero value which denotes the end of a C
> string.
> Therefore, you cannot provide a backwards compatible way to implement this.

Indeed, strings containing latin1 chars are usually not UTF-8 valid,
which is exactly how we detect it in some places, like in Vision for ex.
to convert them.

> 
> BTW: please remove the unnecessary part of the conversation from your
> replies.

And don't start a new thread by deplying to an unrelated message
(nightlies), please, it's painful with thread-aware MUAs :p

François.

Other related posts: