Amazon-SP-API-CSharp
Amazon-SP-API-CSharp copied to clipboard
The entire app changes to invariant culture and currency symbols change to ¤
#673 introduces an application-wide bug. Since this is not a breaking change but an optional parameter, if someone doesn't change their existing code to provide cultureInfo, the entire thread that called the library will have its culture changed to invariant. This might mean, for example, that all UI screens will lose their currency formatting and the numbers will look like this: ¤123.00 instead of $123.00 or €123,00
public AmazonConnection(AmazonCredential Credentials, string RefNumber = null, CultureInfo? cultureInfo = null) { Authenticate(Credentials); this.RefNumber = RefNumber; Thread.CurrentThread.CurrentCulture = cultureInfo ?? CultureInfo.InvariantCulture; }
Changes InvariantCulture to default - CurrentCulture: #708 this should be fix the issue