OSN won't start in locale using comma as decimal separator

Bug #634735 reported by Pontus Freyhult
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSatNav
Fix Committed
High
evolvedlight

Bug Description

This is on a HTC Magic running 2.2 (CM 6).

If I try running OSN with my normal locale (Swedish), I get before anything appears. If I change locale to English (US), it works as expected.

I believe this is a problem for locales using comma (,) as decimal separator, i.e. 5/4 = 1,25, not 1.25.

Traceback:

09-10 09:27:56.051 E/AndroidRuntime(10399): java.lang.RuntimeException: Unable to start service org.opensatnav.TripStatisticsService@434d1eb0 with Intent { cmp=org.opensatnav/.TripStatisticsService }: java.lang.IllegalArgumentException: syntax error: U_UNQUOTED_SPECIAL: ###.##
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3063)
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.app.ActivityThread.access$3600(ActivityThread.java:125)
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2096)
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.os.Handler.dispatchMessage(Handler.java:99)
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.os.Looper.loop(Looper.java:123)
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.app.ActivityThread.main(ActivityThread.java:4627)
09-10 09:27:56.051 E/AndroidRuntime(10399): at java.lang.reflect.Method.invokeNative(Native Method)
09-10 09:27:56.051 E/AndroidRuntime(10399): at java.lang.reflect.Method.invoke(Method.java:521)
09-10 09:27:56.051 E/AndroidRuntime(10399): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
09-10 09:27:56.051 E/AndroidRuntime(10399): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
09-10 09:27:56.051 E/AndroidRuntime(10399): at dalvik.system.NativeStart.main(Native Method)
09-10 09:27:56.051 E/AndroidRuntime(10399): Caused by: java.lang.IllegalArgumentException: syntax error: U_UNQUOTED_SPECIAL: ###.##
09-10 09:27:56.051 E/AndroidRuntime(10399): at com.ibm.icu4jni.text.NativeDecimalFormat.applyPattern(NativeDecimalFormat.java:569)
09-10 09:27:56.051 E/AndroidRuntime(10399): at com.ibm.icu4jni.text.NativeDecimalFormat.applyLocalizedPattern(NativeDecimalFormat.java:261)
09-10 09:27:56.051 E/AndroidRuntime(10399): at java.text.DecimalFormat.applyLocalizedPattern(DecimalFormat.java:633)
09-10 09:27:56.051 E/AndroidRuntime(10399): at org.opensatnav.util.FormatHelper.formatSpeed(FormatHelper.java:90)
09-10 09:27:56.051 E/AndroidRuntime(10399): at org.opensatnav.services.TripStatistics.getSpeedString(TripStatistics.java:149)
09-10 09:27:56.051 E/AndroidRuntime(10399): at org.opensatnav.services.TripStatistics.getAverageTripSpeedString(TripStatistics.java:140)
09-10 09:27:56.051 E/AndroidRuntime(10399): at org.opensatnav.TripStatisticsController.tripStatisticsChanged(TripStatisticsController.java:77)
09-10 09:27:56.051 E/AndroidRuntime(10399): at org.opensatnav.services.TripStatistics.addTripStatsListener(TripStatistics.java:57)
09-10 09:27:56.051 E/AndroidRuntime(10399): at org.opensatnav.TripStatisticsService.onStart(TripStatisticsService.java:84)
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.app.Service.onStartCommand(Service.java:420)
09-10 09:27:56.051 E/AndroidRuntime(10399): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3053)

Revision history for this message
evolvedlight (steve-evolvedlight) wrote :

Confirmed

Changed in opensatnav:
importance: Undecided → High
assignee: nobody → evolvedlight (steve-evolvedlight)
milestone: none → 1.0
status: New → Confirmed
Revision history for this message
evolvedlight (steve-evolvedlight) wrote :

Fixed in rev 116

Changed in opensatnav:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.