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

AILog.Info("\n") results in "?" instead of newline #5349

Closed
DorpsGek opened this issue Oct 30, 2012 · 5 comments
Closed

AILog.Info("\n") results in "?" instead of newline #5349

DorpsGek opened this issue Oct 30, 2012 · 5 comments
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

Kogut opened the ticket and wrote:

tested in r24646

Attachments

Reported version: trunk
Operating system: All


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

Yexo wrote:

Newlines are not allowed in log messages, so printing a question mark seems fine to me. The only thing that could be done is improving the documentation a bit to include "newlines are not allowed".


This comment was imported from FlySpray: https://bugs.openttd.org/task/5349#comment11634

@DorpsGek
Copy link
Member Author

krinn wrote:

squirrel allow a limited charset, you can see the ones that are "displayable" (one that work and aren't change as ?) here : http://dev.openttdcoop.org/projects/scriptlib-scp/repository/revisions/6f03c51a4bda/entry/src/charcode.nut

look at GetCharset() function comment there.
I hope it help


This comment was imported from FlySpray: https://bugs.openttd.org/task/5349#comment11636

@DorpsGek
Copy link
Member Author

DorpsGek commented Nov 2, 2012

Yexo wrote:

That file seems to disallow a lot of valid utf-8 characters. I didn't test it, but are you sure all values >=0x80 are invalid?


This comment was imported from FlySpray: https://bugs.openttd.org/task/5349#comment11649

@DorpsGek
Copy link
Member Author

DorpsGek commented Nov 2, 2012

krinn wrote:

No, that's the only ones valid in the ascii set. more exist that are valid as utf8, ie: 0xac But i'm not sure if all fonts handle them.
But the range 0x80->0x9f is certainly invalid.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5349#comment11650

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 2, 2013

Rubidium closed the ticket.

Reason for closing: Fixed

In r24957


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

@DorpsGek DorpsGek closed this as completed Feb 2, 2013
@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