You are here

GetParameters vs. GetParametersUnicode

3 posts / 0 new
Last post
Bart.S
Offline
Last seen: 2 months 2 weeks ago
Developer
Joined: 2008-07-23 07:56
GetParameters vs. GetParametersUnicode

What is the difference between the built-in NSIS Getparameters function and the custom GetParametersUnicode function used in many portable apps?
GetParametersUnicode.nsh says: "This function handles getting parameters when the EXE's path contains CJK characters".
The NSIS 2.40 changelog says: "Fixed GetParameters handling of MBCS characters"
So has GetParamtersUnicode any advantages or are they equal?

John T. Haller
John T. Haller's picture
Online
Last seen: 19 min 23 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Official

From now on, all launchers will be using the official GetParameters. We just used our own because the NSIS function was broken for so long and would completely fail if there were Chinese/Japanese/etc characters in the path. GetParametersUnicode is no longer needed.

Sometimes, the impossible can become possible, if you're awesome!

Bart.S
Offline
Last seen: 2 months 2 weeks ago
Developer
Joined: 2008-07-23 07:56
Ahh, thanks!

I'll use GetParameters too. (saves 1kb) Smile
I wasn't sure if that problem is perhaps a GetParameters/GetParametersUnicode problem. Now I know it isn't. Thanks.

Log in or register to post comments