TeamHypersomnia / Hypersomnia

Multiplayer top-down shooter made from scratch in C++. Play in your Browser! https://hypersomnia.io Made in 🇵🇱
https://hypersomnia.io/
GNU Affero General Public License v3.0
1.08k stars 47 forks source link

"emojitest.txt" fails on Windows #268

Closed jackducham closed 1 year ago

jackducham commented 1 year ago

I downloaded the Windows executable and it looks like a test related to unicode is failing. Is this a known problem or am I missing something? I did try deleting the (empty) cache directory and the problem persists.

Error message:

...
[14:26:07] Running unit tests.
[14:26:07] Shutting down the network library.
[14:26:07] Unit test session failure:
Catch session failed with result: 1.
cout:

 is a Catch v2.13.9 host application.
Run with -? for options

try_generate_sanitized_filename

C:\projects\hypersomnia\src\augs\string\path_sanitization.cpp(500)

C:\projects\hypersomnia\src\augs\string\path_sanitization.cpp(522): FAILED:
  REQUIRE( S::try_generate_sanitized_filename("emoji・test.txt") == "emojitest.txt" )
due to unexpected exception with message:
  Unicode 文字のマッピングがターゲットのマルチバイト コード ペ・
  [ジにありません。

===============================================================================
test cases:  21 |  20 passed | 1 failed
assertions: 555 | 554 passed | 1 failed
jackducham commented 1 year ago

Resolved- no clue why I had a locale set to Japanese but following the steps here https://superuser.com/questions/1167662/why-is-windows-10-displaying-as-%C2%A5-on-the-command-line fixed this. I switched the locale to English and also enabled (beta) UTF-8 support.