-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for InvariantCulture
mode
#18283
Comments
To detect the invariant mode, here are the relevant parts from .NET runtime: GetBooleanConfig("System.Globalization.Invariant", "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT");
internal static bool GetBooleanConfig(string switchName, bool defaultValue) =>
AppContext.TryGetSwitch(switchName, out bool value) ? value : defaultValue;
internal static bool GetBooleanConfig(string switchName, string envVariable, bool defaultValue = false)
{
string? str = Environment.GetEnvironmentVariable(envVariable);
if (str != null)
{
if (str == "1" || bool.IsTrueStringIgnoreCase(str))
{
return true;
}
if (str == "0" || bool.IsFalseStringIgnoreCase(str))
{
return false;
}
}
return GetBooleanConfig(switchName, defaultValue);
} |
Interesting insights @Youssef1313 , I tried to run the code as follow DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 FRAMEBUFFER=/dev/fb0 dotnet /mnt/sdcard/uno/UnoFrameBuffer.dll or even with: export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
FRAMEBUFFER=/dev/fb0 dotnet /mnt/sdcard/uno/UnoFrameBuffer.dll But both produce the same result as reported above. Based on https://aka.ms/GlobalizationInvariantMode , I went checking my {
"runtimeOptions": {
"tfm": "net8.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "8.0.0"
},
"configProperties": {
"Switch.System.Windows.Media.EnableHardwareAccelerationInRdp": true,
"Windows.ApplicationModel.DataTransfer.DragDrop.ExternalSupport": true,
"System.Globalization.Invariant": true,
"System.Globalization.PredefinedCulturesOnly": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
} As far as I can see, everything should be there? |
The code @Youssef1313 suggested is for uno itself in order to avoid doing culture-specific work. This is currently not fixed. |
This is everything I get on the console:
Originally posted by @igiona in #15874 (reply in thread)
The text was updated successfully, but these errors were encountered: