-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
RegionInfo.CurrentRegion.ISOCurrencySymbol returns XDR on iOS device #73464
Comments
From @GalaxiaGuy on Fri, 05 Aug 2022 13:13:24 GMT The code for both Xamarin.iOS and .NET iOS exists in this repo. |
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
From @chamons on Fri, 05 Aug 2022 15:18:21 GMT So I believe https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc would be the standard way of looking this up on iOS. |
From @chamons on Fri, 05 Aug 2022 15:20:11 GMT I am going to move this issue to dotnet/runtime as they own the BCL API in question. |
Tagging subscribers to this area: @dotnet/area-system-globalization Issue DetailsFrom @Eilon on Thu, 04 Aug 2022 18:16:47 GMT Issue moved from dotnet/maui#9182
From @softlion on Thursday, August 4, 2022 8:37:59 AM DescriptionOn an iOS device set to french FR/fr, RegionInfo.CurrentRegion.ISOCurrencySymbol returns XDR instead of EUR. Also, when using standard resource strings on a device with FR language set, the culture stays in EN as if FR was not detected. Device: iPhone XR, iOS 15.5
Steps to Reproduce
Version with bugUnknown/Other (please specify) Last version that worked wellUnknown/Other Affected platformsiOS Affected platform versionsiOS 15.5 device Did you find any workaround?no Relevant log outputNo response Copied from original issue xamarin/xamarin-macios#15633
|
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger Issue DetailsFrom @Eilon on Thu, 04 Aug 2022 18:16:47 GMT Issue moved from dotnet/maui#9182
From @softlion on Thursday, August 4, 2022 8:37:59 AM DescriptionOn an iOS device set to french FR/fr, RegionInfo.CurrentRegion.ISOCurrencySymbol returns XDR instead of EUR. Also, when using standard resource strings on a device with FR language set, the culture stays in EN as if FR was not detected. Device: iPhone XR, iOS 15.5
Steps to Reproduce
Version with bugUnknown/Other (please specify) Last version that worked wellUnknown/Other Affected platformsiOS Affected platform versionsiOS 15.5 device Did you find any workaround?no Relevant log outputNo response Copied from original issue xamarin/xamarin-macios#15633
|
@steveisok could you please triage this one? Thanks! |
Similar to #70028. This is something we will address in .NET 8. |
Workaround. I still don't understand why it needs 2 releases ... No workaround needed for Android. It just works as expected. public static string LocaleCurrency =>
#if IOS
Foundation.NSLocale.CurrentLocale.CurrencyCode;
#else
RegionInfo.CurrentRegion.ISOCurrencySymbol;
#endif |
This is the same issue as mentioned in #73512 (comment) It was fixed in the 6.0.6 runtime release, I verified the issue doesn't happen with this or a later version. |
From @Eilon on Thu, 04 Aug 2022 18:16:47 GMT
Issue moved from dotnet/maui#9182
From @softlion on Thursday, August 4, 2022 8:37:59 AM
Description
On an iOS device set to french FR/fr, RegionInfo.CurrentRegion.ISOCurrencySymbol returns XDR instead of EUR.
This happens only on the device, not on the simulator.
Also, when using standard resource strings on a device with FR language set, the culture stays in EN as if FR was not detected.
Device: iPhone XR, iOS 15.5
Steps to Reproduce
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15.5 device
Did you find any workaround?
no
Relevant log output
No response
Copied from original issue xamarin/xamarin-macios#15633
The text was updated successfully, but these errors were encountered: