Interesting. This suggests that something is broken in the actual Java JDK stuff.
On Aug 7, 6:32 pm, Tim Su <[email protected]> wrote: > I had one of my users perform the following tests. They have an HTC > Desire running Froyo and have the locale set to "French". > > new SimpleDateFormat("EEEE, d MMMM").format(new Date()) > new SimpleDateFormat("EEEE, d MMMM", Locale.FRENCH).format(new Date()) > new SimpleDateFormat("EEEE, d MMMM", Locale.getDefault()).format(new > Date()) > new SimpleDateFormat("EEEE, d MMMM", > getResources().getConfiguration().locale).format(new Date()) > > Each time, the return string is the same: "7, 7 8" > > Both Locale.getDefault() and the configuration locale are set to > "French (France)" (fr_FR) > > Pretty busted, if you ask me... does anyone know of a workaround that > doesn't involve manually sticking days/weekdays into strings.xml? > > On Aug 6, 5:08 am, DanH <[email protected]> wrote: > > > Right. What I was suggesting was to try setting locale in order to > > test the hypothesis that lack of a locale is causing the symptoms, vs, > > eg, something broken in the date formatter logic. And it would > > provide a circumvention for those who need one. > > > On Aug 6, 4:37 am, "{ Devdroid }" <[email protected]> wrote: > > > > On 5 August 2010 14:53, DanH <[email protected]> wrote: > > > > > Has anyone tried doing Locale.setDefault to circumvent thisproblem? > > > > Theproblemis when you do not care what locale are set and simply > > > want to use system-wide, not any particular one. > > > Calling setDefault is same like passing locale to SimpleDateFormater > > > constructor - you need to either specify locale or read system > > > settings and pass that in hope it works. Since this is like blind fix > > > it may or may not work but you still do not know what the culprit is. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

