Locale/Format Glitch?

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Locale/Format Glitch?

Post 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
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67322
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Locale/Format Glitch?

Post by admin »

Can you isolate the problem to a particular line?

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Locale/Format Glitch?

Post 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.

admin
Site Admin
Posts: 67322
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Locale/Format Glitch?

Post 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.

Post Reply