Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[OSX] Non-ASCII characters render as garbage when default OS language is CJK #22355
Game version: Experimental
Tiles or curses: Curses
Mods active: None
Non-ASCII characters such ß (the German double-S) and Chinese characters render as they normally appear.
These characters render as follows. The example below is from the Chinese version. It appears the right characters sometimes appear — possibly every other character is right, although I'm not sure if it's that consistent. For instance, "Simplified Chinese" is 中文天朝 , and CDDA displays it as 中 (garbage) 天 (garbage).
Steps to reproduce the behavior
Build Cataclysm with
@Leland Aha, that's a step in the right direction. My language order is:
Switching English back to the top makes Cataclysm's non-ASCII text display properly, so the bug is likely related to the OS language setting. I've changed the bug title to reflect that. Based on this, I've discovered that that I can work around this issue by starting Cataclysm with
@BrettDong Looking back at my build output, the linker step is indeed called with `-lncurses. It looks like this comes from line 566 of the Makefile:
If I naively change that to
When I was using Mac about a year ago, everything worked fine for me. I was using OS X 10.11 El Capitan at that time. I installed