P / Invoke with installing a language on Linux using Mono

I am currently writing a wrapper for library C. This library reads text files for internal operations.

My problem is that somehow this library reads text files depending on my locale, which is wrong. It should read files from the "C" locale, especially the numbers. On Windows with .NET, files are read correctly using a simple C application; these files are also read correctly.

A C # application should work with the standard locale, but only unmanaged methods should be called with the locale C. Is there a way to accomplish this, perhaps with an unmanaged method attribute?

+4
source share

All Articles