RE: Are all strings passed to preflight/postflight scripts as asciior unicode?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: Acq5fY51P8nnXN9DTaSTpNqAsl5EBwADHbJA Thread-topic: Are all strings passed to preflight/postflight scripts as asciior unicode? -----Original Message----- From: installer-dev-bounces+ckritzer=avid.com@lists.apple.com [mailto:installer-dev-bounces+ckritzer=avid.com@lists.apple.com] 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 (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/ckritzer%40avid.com This email sent to ckritzer@avid.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chris Kritzer