Page 1 of 1

Locale/Format Glitch?

Posted: 08 Jan 2014 11:37
by Enternal
I found this little problem a while ago but never posted it but believed I should post it now. I encountered it while using the SessionManager script by FluxTorpedo. Attached to this post is an excerpt of it in which I keep running into the issue. Basically, XYplorer is complaining:

Code: Select all

'//' is not a valid script command.
//
0
What is important is that the format settings of the system. Switching to English, everything works. Switch back to Japanese, it breaks. It also breaks a couple other times for other format settings which I don't remember which.

System Details:

Code: Select all

OS: Windows 7 Home Premium (Service Pack 1), 64-bit (6.1)
OS Uptime: 12 days, 14 hrs, 59 secs
UTC Offset: --08:00
User Role: User
Themes: Yes (Aero)    RealSystem32: Yes

System Locale ID: 1041 (ja-JP)
Thread Locale ID: 1041 (ja-JP)
Default ANSI Code Page: 932   (ANSI/OEM - Japanese Shift-JIS)
Active Code Page: 932   (ANSI/OEM - Japanese Shift-JIS)
DBCS Code Page: Yes

Re: Locale/Format Glitch?

Posted: 08 Jan 2014 12:34
by admin
Can you isolate the problem to a particular line?

Re: Locale/Format Glitch?

Posted: 08 Jan 2014 12:44
by Enternal
Not really. Those 3 lines left that I have in that script file attached to the post, deleting any of the line individually, you get a different error. You can get a Overflow error and a "'//' is not a valid script command.". If you delete 2 out of the 3 lines, it does not matter which order, the script will work. If there are at least 2 lines in various order, an error occur.

To be honest, I think this script can be fixed by FluxTorpedo by himself since he uses some odd symbols and saved the file in ANSI format. I just want to let you know just in case there is something else that might cause those issues since I do remember running into them a couple time with various scripts on the forum.

Re: Locale/Format Glitch?

Posted: 08 Jan 2014 14:03
by admin
OK, I see. Yes, the script should be saved in UTF16, this should fix it. It cannot run like this internationally since it uses upper ANSI characters in literal strings.

Another way would be to use chr() instead of literal strings.