From: "NuriYuri (Youri Nouri)" Date: 2021-09-25T08:23:48+00:00 Subject: [ruby-core:105416] [Ruby master Misc#18191] All internal filenames should be in UTF-8 Issue #18191 has been reported by NuriYuri (Youri Nouri). ---------------------------------------- Misc #18191: All internal filenames should be in UTF-8 https://bugs.ruby-lang.org/issues/18191 * Author: NuriYuri (Youri Nouri) * Status: Open * Priority: Normal ---------------------------------------- I don't know if that has already been fixed but it seems that few internal variables ($LOADED_FEATURES) are still containing paths announced as BINARY instead of UTF-8. (While their content is actually UTF-8 Data). Here's some evidence of the issue: https://www.zupimages.net/up/21/38/g8a0.png ``` p $LOADED_FEATURES[5] => "D:/nuriy/Work/pok\xC3\xA9monsdk/lib/ruby/3.0.0/i386-mingw32/enc/encdb.so" p $LOADED_FEATURES[5].encoding => # ``` Here's the fix I made to prevent the issue: https://gitlab.com/pokemonsdk/pokemonsdk/-/commit/c9b27ecad1c4b5016e2ef56a3f1df25e74395ce4 I believe that it can be fixed by setting the right encoding in the generated string object when $LOADED_FEATURES is filled. ruby -v: `ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [i386-mingw32]` Content of psdk.bat: `ruby.exe --disable=gems,rubyopt,did_you_mean Game.rb %*` -- https://bugs.ruby-lang.org/ Unsubscribe: