Skip to content
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

No names for culture region #7948

Closed
whann0205 opened this issue Jun 11, 2022 · 9 comments
Closed

No names for culture region #7948

whann0205 opened this issue Jun 11, 2022 · 9 comments
Labels
platform/iOS 🍎 s/needs-attention Issue has more information and needs another look t/bug Something isn't working

Comments

@whann0205
Copy link

whann0205 commented Jun 11, 2022

Description

You get instead of names the 2 letter iso code.
Same Code works under Android and used to work in older maui
versions.
Have already tried to contact dotnet/runtime and
Xamarin IOS but didnt work out eg. hep me fix that one.
That happens if you use the ios simulator on a mac m1
device.
The application uses the netmaui blazor variant,
in case if that could be relevant.

Steps to Reproduce

Create a function as shown below somewhere and call it:

var regions = CultureInfo.GetCultures (CultureTypes.SpecificCultures)
	.Select (culture => new RegionInfo (culture.Name))
	.OrderBy (v => v.ThreeLetterISORegionName);
foreach (var r in regions) {
	Application.Current.MainPage.DisplayAlert ('Showme",$"{r.ThreeLetterISORegionName} {r.NativeName} {r.Name} {r.EnglishName} {r.DisplayName}","OK");
}

Version with bug

6.0 Release Candidate 3

Last version that worked well

Preview 13

Affected platforms

iOS

Affected platform versions

n/a happens on all IOS Versions

Did you find any workaround?

Not at all

Relevant log output

No response

@whann0205 whann0205 added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels Jun 11, 2022
@jfversluis
Copy link
Member

I see you mention "6.0 Release Candidate 3" as a version, is this correct? If so, why are you using an older version? Would you be able to try the latest version and see if it still happens there?

@jfversluis jfversluis added s/needs-info Issue needs more info from the author and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels Jun 13, 2022
@ghost
Copy link

ghost commented Jun 13, 2022

Hi @whann0205. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@Eilon Eilon changed the title No names for region No names for culture region Jun 13, 2022
@whann0205
Copy link
Author

I have installed the lastest visual studio 2022 on both machines
and the .net maui workload. Regarding the version i only selected the last entry
of the list. I can confirm for you whatever you need to know about the machine if
you tell how or what command i should run.

@ghost ghost added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Jun 13, 2022
@Eilon
Copy link
Member

Eilon commented Jun 14, 2022

@whann0205 thanks for checking on the latest version. Does this issue occur only on iOS devices? If so, it might be an issue specifically with Xamarin.iOS. @rolfbjarne - checking with you if maybe this should move to https://github.com/xamarin/xamarin-macios/ ?

@whann0205
Copy link
Author

hi elilon,
Yes its an issue only occurs in the ios emulator, cannot test a physcial iphone since net maui does
currenlty not support it AFAIK. The Ios emulator is running on my m1 macbook.

i have already done that with rolf
xamarin/xamarin-macios#15159
and after an interlude with dotnet/runtime team he mention to try it here..

@rolfbjarne
Copy link
Member

@Eilon so the actual bug is in dotnet/runtime. I suggested a workaround here: xamarin/xamarin-macios#15159 (comment), but apparently that's not working because the reporter is using Blazor (xamarin/xamarin-macios#15159 (comment)). So the question is if it's possible to work around this using Blazor (and if so, how) - I have no idea how to make this code work with Blazor: xamarin/xamarin-macios#15159 (comment)

@whann0205
Copy link
Author

In fact its net.maui blazor and the reporter is me :-).
I am pretty sure that this problem is existent in the standard net.maui without blazor as well,
although not tested yet

@Eilon
Copy link
Member

Eilon commented Jun 15, 2022

It does look like a dup of dotnet/runtime#70028. I highly doubt this is Blazor-specific because in .NET MAUI Blazor apps, all the C#/.NET code runs in whatever the native runtime is on that devices. With Blazor it just renders some UI as HTML, but the app code is regular .NET code.

So, let's use dotnet/runtime#70028 to track this.

@Eilon Eilon closed this as completed Jun 15, 2022
@whann0205
Copy link
Author

Well i posted here since the guys at dotnet/runtime - please read their posts - seems to
not understand the topic in detail. In addition i fear they do not want to fix that one and wait
for .net 7. So i would highly appreciate when you post there as well to clear things up.

@ghost ghost locked as resolved and limited conversation to collaborators Jul 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 s/needs-attention Issue has more information and needs another look t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants