On 16 Jan 2013, at 15:50, Fritz Anderson <fri...@manoverboard.org> wrote:

> On 16 Jan 2013, at 3:52 AM, "jonat...@mugginsoft.com" 
> <jonat...@mugginsoft.com> wrote:
> 
>>      Py_SetProgramName((char *)[[scriptRunner launchPath] UTF8String]);
> 
> If a char* is destined for the file system, you should be using 
> -fileSystemRepresentation, not -UTF8String.
> 
> I forget that all the time.

To be honest I rarely remember to call -fileSystemRepresentation.
The docs seem to indicate that its only purpose is to replace abstract / and . 
characters with OS equivalents.
On OS X this would have seem to have no net result.

Is there more to this?

Jonathan
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to