Old 17th December 2009, 08:27   #1
Senior Member
Join Date: Oct 2009
Location: Germany
Posts: 120
unicode::Unicode2Ansi pushes to much onto the stack


When I'm using the function unicode::FileUnicode2Ansi the first value from my stack disappeares.

I've tested it using the following code:
Push "test"

unicode::FileUnicode2Ansi "${DISKS::_countFile}" "${DISKS::_countFile}_tmp" AUTO
Pop $R0
${If} "$R0" != 0
${LogErr} "Converting $\"${DISKS::_countFile}$\" to ANSI failed!"
Goto _end

Pop $R3
MessageBox MB_OK "$R3"
Pop $R3
MessageBox MB_OK "$R3"

I would expect "test" as text of the first message box. Instead, i get "UTF-16LE|UCS-2LE" for the first message box and "test" at the second one.

The readme file of the plug-in shows only one push. Am I doing something wrong or is it a error of the plug-in itself?



Note: I've it's a bug of the plugin that will be fixed, could it please be fixed for version 1.0 too? I've tested both plugins for the error, because I'm using v 1.0 since v1.1 does create empty unicode files for me (with the same code that works fine for v1.0).

Last edited by ChocJunkie; 17th December 2009 at 08:46.
ChocJunkie is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump