Re: Geting special characters in paths in debugger
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