Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non ASCII character in squirrel strings #3074

Closed
DorpsGek opened this issue Jul 31, 2009 · 1 comment
Closed

Non ASCII character in squirrel strings #3074

DorpsGek opened this issue Jul 31, 2009 · 1 comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

blustuff opened the ticket and wrote:

Version: 7.1
OS: Windows XP

It seems that whenever there is a non ASCII character in string, string concatenations are not correctly done: only the left part of the string is actually returned. I got this problem when using non ASCII character in squirrel code, and also with AI*::GetName functions which return localized names.

For instance this code :

AILog.Info("test " + AIIndustry.GetName(industry_id) + " test");

may print

test Fradworth Centrale Électrique

in french but

test Fradworth Power Station test

in english.

Reported version: 0.7.1
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/3074
@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 1, 2009

Rubidium closed the ticket.

Reason for closing: Fixed

In r17013


This comment was imported from FlySpray: https://bugs.openttd.org/task/3074

@DorpsGek DorpsGek closed this as completed Aug 1, 2009
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant