You've already forked linux-packaging-mono
Imported Upstream version 4.2.1.36
Former-commit-id: fb75898888a02f4d3a74cf0a5b841681bc4c7fa8
This commit is contained in:
committed by
Jo Shields
parent
9668de7cb8
commit
dd547c45d4
@ -816,8 +816,15 @@ namespace System.Globalization
|
||||
CultureInfo ci = new CultureInfo ();
|
||||
|
||||
if (!ci.construct_internal_locale_from_name (name)) {
|
||||
int idx = name.IndexOf ('-');
|
||||
if (idx < 1 || !ci.construct_internal_locale_from_name (name.Substring (0, idx)))
|
||||
int idx = name.Length - 1;
|
||||
if (idx > 0) {
|
||||
while ((idx = name.LastIndexOf ('-', idx - 1)) > 0) {
|
||||
if (ci.construct_internal_locale_from_name (name.Substring (0, idx)))
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (idx <= 0)
|
||||
throw CreateNotFoundException (src_name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user