Re: Are all strings passed to preflight/postflight scripts as ascii or unicode?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=6L/QQgh1oVTuprxhw2CrOZdmLoT49pkKg9hWwgsunGk=; b=ovor304+0l2D3WsvI5Mogx4GfEo4ibWLN2Bs2sRbfc2flq9lY8GVdpz1gZrs8VLNIh +wSDBfe5kKiMCdYSLQ8uN+SB0f4JL3idxXWzbXeytpPNhUaCYd1tb1pukgpKywF/tg40 UXO/77fxqXrx+FO1+69eDZ8Ms77lOJItmSeQM= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=NNpPoyIhNa0NmJyBZeyySf2HEIUXYaymvDS6vgOdejxYi6iYIyykgZb/WCzPSuYwxH 0ZK52yr5mCYaFw7n2fjLccmtR9xa0hzCLlbY4kKto0XdbqrHr51xpshTQpyA+S557U79 fRvxr0ws/lW8GOOnoVOLvlmChxlFcsM7luPsU= On Feb 26, 2010, at 4:37 AM, Chris Kritzer wrote: _______________________________________________ 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... I have a bug where “special characters” in a user-selected folder named !"§$%&/()=? are being passed to the postflight script (written in perl). The installer log shows the text being passed correctly (except for the forward slash, which it translates to a colon), but the script has all sorts of issues parsing the string. '/' is the only (AFAIK) forbidden character for a path component. So it's really a ':'. 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev