• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Does Xcode's Debug Console Handle/Print Malformed UTF-8 Correctly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does Xcode's Debug Console Handle/Print Malformed UTF-8 Correctly?


  • Subject: Re: Does Xcode's Debug Console Handle/Print Malformed UTF-8 Correctly?
  • From: Andreas Grosam <email@hidden>
  • Date: Wed, 24 Aug 2011 20:30:11 +0200

On Aug 24, 2011, at 6:16 PM, Han Ming Ong wrote:

> Andreas,
>
> Is this Xcode 3 or Xcode 4?

This is Xcode 4.1

>
> In any case, it does seem like a bug. Please submit a bug report with a simple test case.

OK, Bug ID# 10016007

>
> thanks, Han Ming
>
> On Aug 24, 2011, at 8:54 AM, Andreas Grosam wrote:
>
>> Well, the topic says it.
>>
>> For instance, a 0xC0 does not exist in a wellformed UTF-8 sequence. When printing such a malformed sequence to Xcode's debug console (via printf or std::cout) Xcode's console apparently becomes corrupt or stops with an unrecoverable error state, and further attempts to write to the console do nothing:
>>
>> printf("XXX\n");
>> printf("abc\xC0\n");
>> printf("XXX\n");
>> fflush(stdout);
>>
>>
>> will output this on Xcode's console:
>>
>> xxx
>>
>>
>> The return values of printf (not shown) do not indicate an error.
>>
>> The same program running in Terminal, will output this:
>> XXX
>> abc?
>> XXX
>>
>> which is OK.
>>
>>
>> According to Unicode v6.0.0, a decoder can stop with an error, or alternatively substitute the minimal malformed subsequence with a replacement character. For Xcode's Console, it would make sense to substitute invalid code units, otherwise the Console becomes useless.
>>
>>
>> Andreas _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Does Xcode's Debug Console Handle/Print Malformed UTF-8 Correctly? (From: Andreas Grosam <email@hidden>)
 >Re: Does Xcode's Debug Console Handle/Print Malformed UTF-8 Correctly? (From: Han Ming Ong <email@hidden>)

  • Prev by Date: Problem when preprocessing Info.plist
  • Next by Date: C++ compiler isn't being used
  • Previous by thread: Re: Does Xcode's Debug Console Handle/Print Malformed UTF-8 Correctly?
  • Next by thread: Problem when preprocessing Info.plist
  • Index(es):
    • Date
    • Thread