Skip to content

Fix StringIsAscii by explicitly setting the type to "signed char" - #3404

Merged
carstene1ns merged 3 commits into
EasyRPG:masterfrom
Ghabry:android
Apr 24, 2025
Merged

Fix StringIsAscii by explicitly setting the type to "signed char"#3404
carstene1ns merged 3 commits into
EasyRPG:masterfrom
Ghabry:android

Conversation

@Ghabry

@Ghabry Ghabry commented Apr 23, 2025

Copy link
Copy Markdown
Member

Turns out "char" is not always signed. Instead it is "implementation defined". In all tests it went unnoticed because x86 is "signed". On ARM it appears to be "unsigned".

This is surprising. For int etc. it is specified to be signed.

Can we just burn the C standard? Who specifies this nonsense?

Fix #3401

Turns out "char" is not always signed. Instead it is "implementation defined".
In all tests it went unnoticed because x86 is "signed". On ARM it appears to be
"unsigned".

This is surprising. For int etc. it is specified to be signed.

Can we just burn the C standard? Who specifies this nonsense?

Fix EasyRPG#3401
@Ghabry Ghabry added this to the 0.8.2 milestone Apr 23, 2025
@Ghabry

Ghabry commented Apr 24, 2025

Copy link
Copy Markdown
Member Author

Linux ARM has the same signed-ness behaviour for char (and the compiler even warns about this with the -Wextra we use :/). And just a month ago Github added ARM runners... Will add some of them so this doesn't happen again :).


Also warns in liblcf:

Warning: /__w/Player/Player/lib/liblcf/src/writer_xml.cpp:94:39: warning: comparison is always true due to limited range of data type [-Wtype-limits]
   94 |                                 if (c >= 0 && c < 32) {
      |                                     ~~^~~~

Ghabry added 2 commits April 24, 2025 11:50
But only for ubuntu:24.04 and debian:12. We don't need 8 runner here.

@carstene1ns carstene1ns left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just hope we do not use all our quota for too much runners :P

@carstene1ns
carstene1ns merged commit 0f8eab0 into EasyRPG:master Apr 24, 2025
@Ghabry
Ghabry deleted the android branch April 25, 2025 07:19
@Ghabry

Ghabry commented Apr 25, 2025

Copy link
Copy Markdown
Member Author

lol, I thought open source projects have infinite quota. :D

sevenc-nanashi pushed a commit to sevenc-nanashi/easyrpg-player that referenced this pull request May 31, 2026
Fix StringIsAscii by explicitly setting the type to "signed char"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Problem with "umlauts" in German Games... (3DS, Switch, Android)

3 participants