AutoHotkey Community

It is currently May 27th, 2012, 5:13 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: December 17th, 2010, 7:33 am 
Offline

Joined: February 9th, 2006, 8:36 pm
Posts: 339
ansi 0xFF char (russian letter "я" / "ya") breaks AHK_L scripts

Code:
msgbox я123

-->
Quote:
Error at line 2.
Line Text: 123
Error: This line does not contain a recognized action.

The program will exit.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2010, 7:57 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
More information is required:
  • Which version and build of AutoHotkey_L?
  • Are you launching the script with the /CP0 command-line switch?
Please read Script File Codepage, in particular the part beginning with "Please note".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2010, 8:16 am 
Offline

Joined: February 9th, 2006, 8:36 pm
Posts: 339
the error above from 1.0.90.00 ANSI

thank you for codepage hint - it wasn't prominently written on the Changes page - however ansi build gives the same error if I save script as UTF8+BOM (unicode build works ok).

p.s. I think the error message box could hint at codepage rules for newbies


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2010, 8:52 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
wOxxOm wrote:
the error above from 1.0.90.00 ANSI
It turns out -1 (0xFF in ANSI builds) is used as an end-of-file indicator by the text-reading routines. In this particular case the effect is end-of-line. I will fix this.
Quote:
the wrong display of the said letter below is from 1.0.90.00 Unicode build:
I presume you now know to save the script in the correct encoding so that this is no longer an issue.
Quote:
thank you for codepage hint - it wasn't prominently written on the Changes page
I've been meaning to revise the front page of the help file, which currently has far too much information to be useful. I intend to put emphasis on compatibility issues and other common issues such as this one.
Quote:
p.s. I think the error message box could hint at codepage rules for newbies
It could, but then it would be misleading for every case that has nothing to do with codepage rules.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 17th, 2010, 8:56 am 
Offline

Joined: February 9th, 2006, 8:36 pm
Posts: 339
thank you for clarification :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2010, 1:07 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Bug fixed in v1.0.91.01.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group