Bug 13490 - App crashes when culture is zh_TW
Summary: App crashes when culture is zh_TW
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries (show other bugs)
Version: 4.8.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2013-07-25 19:30 UTC by Song Chen
Modified: 2013-07-30 12:11 UTC (History)
4 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:

Test case (9.23 KB, application/zip)
2013-07-26 18:39 UTC, Brendan Zagaeski (Xamarin Team, assistant)

Description Song Chen 2013-07-25 19:30:49 UTC
When setting the Android to language Chinese - Traditional, the app will crash when some .net functions are used. For example, string.EndsWith.
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2013-07-26 18:39:34 UTC
From Song Chen:

I am using 4.8.0. You can just simply download the “Hello World” example, and add the string.EndsWith method anywhere, e.g. the button click handler. Then deploy it to a device with language set to Chinese – Traditional, and you will see the app crash after clicking the button.


Steps to reproduce:
1. Set the Android Language to: 中文(繁體)
2. Run the attached example (Android template project, plus a call to string.EndsWith())
3. Click the button
4. The program quits

Change the language to something else, kill the app (or redeploy, or restart the device), run it again, click the button, and the app does not quit.
Comment 2 Brendan Zagaeski (Xamarin Team, assistant) 2013-07-26 18:39:54 UTC
Created attachment 4461 [details]
Test case
Comment 3 Mikayla Hutchinson [MSFT] 2013-07-29 13:39:42 UTC
For fix and explanation, see bug 13509.
Comment 4 Jonathan Pryor 2013-07-29 15:07:10 UTC
monodroid/a93d13b7 includes this fix. The fix will be in Xamarin.Android 4.8.2.
Comment 5 Peter Collins 2013-07-30 12:11:31 UTC
Fix verified in:
Mono 3.2.1 ((no/675bb0f) - currently in the beta channel.
X.A (4.8.0 branch / 36605a9a)

Note You need to log in before you can comment on or make changes to this bug.