modernuo / ModernUO

Ultima Online Server Emulator for the modern era!
https://www.modernuo.com
GNU General Public License v3.0
255 stars 156 forks source link

Unicode Conversion Issues During Build Process on Non-English Operating Systems #1996

Open dckaratas opened 3 hours ago

dckaratas commented 3 hours ago

After the 'dotnet publish' step, in files like Server.VirtualHairInfo.v0 json, places containing the letter 'I' are converted to their Unicode equivalents when the operating system is not in English (in my case, Turkish). This causes an error during the build step. I tried changing the culture value in Main.cs and setting the language in publish.cmd, but these did not resolve the issue. The build was successful when the Windows language was set to English.

kamronbatman commented 3 hours ago

Can you post an example of the text? This is handled by the schema generator, which we need to force to English I guess.

Bohicatv commented 1 hour ago

The problem stems from how windows maps characters on windows 11 using different languages. Turkish has to be localized in runtime on his computer. Unless we can switch it based on detected system language. I don't know how to do this in .net 8+ without forcing all new compiles into Turkish "tr-TR".