Skip to content

Strip byte-order mark from input_osk_utf8_pages.h to fix older GCC#18358

Merged
LibretroAdmin merged 1 commit intolibretro:masterfrom
celerizer:strip-bom
Nov 5, 2025
Merged

Strip byte-order mark from input_osk_utf8_pages.h to fix older GCC#18358
LibretroAdmin merged 1 commit intolibretro:masterfrom
celerizer:strip-bom

Conversation

@celerizer
Copy link
Copy Markdown
Contributor

Old versions of GCC get hung up on this file because of the included BOM. As the file is UTF-8 the byte order is the same on every machine so this should be able to be safely removed.

This fixes the following error on old versions of GCC:

In file included from menu/menu_driver.c:62:
menu/../input/input_osk_utf8_pages.h:1: error: stray '\357' in program
menu/../input/input_osk_utf8_pages.h:1: error: stray '\273' in program
menu/../input/input_osk_utf8_pages.h:1: error: stray '\277' in program
image

See: https://www.unicode.org/versions/Unicode5.0.0/ch02.pdf

  • Use of a BOM is neither required nor recommended for UTF-8, but may be encountered in contexts where UTF-8 data is converted from other encoding forms that use a BOM or where the BOM is used as a UTF-8 signature.

@LibretroAdmin LibretroAdmin merged commit 5acda87 into libretro:master Nov 5, 2025
31 checks passed
@celerizer celerizer deleted the strip-bom branch November 5, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants