-
Notifications
You must be signed in to change notification settings - Fork 677
Testing libicu compatibility on Linux
Gregg Miskelly edited this page Nov 3, 2021
·
2 revisions
On Linux, .NET Core depends on libicu for data about locales and international settings. There is a special Globalization Invariant Mode that can be enabled to remove this dependency, but Invariant Mode isn't enabled by default. When Invariant Mode is NOT enabled, and when a compatible libicu cannot be found, the process running .NET Core (probably the debugger if you are reading this article) will abruptly exit.
To enable invariant mode, add the following environment variable: export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
.
This page provides information to verify that the libicu installed on your system is compatible with .NET Core.
- Run:
dotnet new console -f net5.0 -o CultureInfoTest
to create a new console app cd CultureInfoTest
- Replace Program.cs with the below code
dotnet run
New program.cs:
using System;
namespace CultureInfoTest
{
class Program
{
static void Main(string[] args)
{
// Test if we can successfully create a culture info
new System.Globalization.CultureInfo("en-US");
Console.WriteLine("Test successful.");
}
}
}
Configuration
- Configuring Snap installs of dotnet-sdk
- Configuring Arch Linux for Unity development
- Configuring Arch Linux for Razor development
- Installing the .NET Core Debugger on Arch Linux
Debugger
- Overview
- launch.json Help
- Feature List
- Enable Logging
- Portable PDBs
- Troubleshoot Breakpoints
- Attaching to remote processes
- Remote Debugging On Linux-Arm
- Windows Subsystem for Linux
- Diagnosting 'Debug adapter process has terminated unexpectedly'
- Testing libicu compatibility on Linux
- Debugging into the .NET Runtime itself
- Debugging x64 processes on an arm64 computer
Documentation
- Change Log
- Branches and Releases
- Installing Beta Releases
- Installing without internet connectivity
- Linux Support
- Run/Debug Unit Tests
- Troubleshooting: 'The .NET Core SDK cannot be located.' errors
Developer Guide