RE: Are all strings passed to preflight/postflight scripts as asciior unicode?
RE: Are all strings passed to preflight/postflight scripts as asciior unicode?
- Subject: RE: Are all strings passed to preflight/postflight scripts as asciior unicode?
- From: "Chris Kritzer" <email@hidden>
- Date: Mon, 1 Mar 2010 14:02:12 -0800
- Thread-topic: Are all strings passed to preflight/postflight scripts as asciior unicode?
-----Original Message-----
From: installer-dev-bounces+ckritzer=email@hidden
[mailto:installer-dev-bounces+ckritzer=email@hidden] On
Behalf Of Iceberg-Dev
Sent: Friday, February 26, 2010 3:01 AM
To: Installer-Dev mailing-list
Subject: Re: Are all strings passed to preflight/postflight scripts as
asciior unicode?
<snip>
>> Does PackageMaker pass the string as escaped text or does it pass
>> it as Unicode?
>>
> The installation framework being a Cocoa thing, it's quite probable C
> strings passed to scripts as arguments or env vars are built using
> UTF8String or fileSystemRepresentation. Both are usually the same,
> but apparently sometimes there can be a difference.
I see. Odd that using decode_utf8() doesn't seem to return the
characters correctly.
Thanks for the info.
Kritzer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev 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.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden