• 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: Geting special characters in paths in debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Geting special characters in paths in debugger


  • Subject: Re: Geting special characters in paths in debugger
  • From: David Dunham <email@hidden>
  • Date: Tue, 14 Apr 2009 16:01:53 -0700

On 14 Apr 2009, at 11:54, Paul Walmsley wrote:

While I agree with David's comments, it's still a more general requirement to be able to deal with internationalised applications and paths correctly. You say that this path variable is 'a string', but is that a C or C++ string, CFString or something else? If it's a C/C++ string is it char* or wchar_t* ? If it's char* what's the encoding or code page? Where did the path variable come from -- a C runtime library call or a Carbon call? If it's from the C runtime library then chances are it's a UTF8 encoded char*.


You're right, I focused on "special characters" and "path" and didn't really answer the question.

If it's an NSString*, you can just use "po theString" in GDB. I assume that works with CFString as well since they're toll-free bridged.

If it's wchar_t* you should probably rewrite your code (use UTF-8 or NSString/CFString).

David Dunham   www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein

_______________________________________________
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: 
 >Geting special characters in paths in debugger (From: Erg Consultant <email@hidden>)
 >Re: Geting special characters in paths in debugger (From: David Dunham <email@hidden>)
 >Re: Geting special characters in paths in debugger (From: Paul Walmsley <email@hidden>)

  • Prev by Date: Re: How to start exe in X11?
  • Next by Date: Re: Xcode 3.1.2 Crash
  • Previous by thread: Re: Geting special characters in paths in debugger
  • Next by thread: CodeSign Requirement.
  • Index(es):
    • Date
    • Thread