Unplanned
Last Updated: 04 Apr 2025 10:48 by ADMIN
Scheduled for 2025 Q2
Calee
Created on: 04 Oct 2024 13:57
Type: Bug Report
4
Setting the same Culture with FormatWithCulture and globally may produce different results in .NET

I set globally the culture on the Linux Ubuntu Docker Container. Interestingly, the negative currency with en-US and fr-CA was displayed with the '-' sign rather than in brackets.

This was reproduced even in the values set with the Text Function FormatWithCulture(cultureName, format, args). The function displayed wrong formatting also on Windows, even in the Standalone Report Designer for .NET 8.

When the global culture on Windows was en-US, the negative decimal value formatted without the FormatWithCulture function was displayed correctly in .NET 8.

In the .NET Framework, the negative currencies were displayed as expected in all scenarios.

I have linked also a muted video showing the issue.

0 comments