Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Issue 10939002: Fix finding locale from OS on Windows (Closed)

Created:
8 years, 3 months ago by Alan Knight
Modified:
8 years, 3 months ago
Reviewers:
Emily Fortuna
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix finding locale from OS on Windows Committed: https://code.google.com/p/dart/source/detail?r=12505

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -6 lines) Patch
M pkg/intl/intl.dart View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M pkg/intl/intl_standalone.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/test/intl_test.dart View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M pkg/pkg.status View 1 2 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Alan Knight
8 years, 3 months ago (2012-09-17 23:35:25 UTC) #1
Alan Knight
Added the change to the status file to run those tests on Windows again.
8 years, 3 months ago (2012-09-17 23:58:06 UTC) #2
Emily Fortuna
lgtm https://codereview.chromium.org/10939002/diff/3001/pkg/intl/intl.dart File pkg/intl/intl.dart (right): https://codereview.chromium.org/10939002/diff/3001/pkg/intl/intl.dart#newcode145 pkg/intl/intl.dart:145: if (aLocale == "C") return "en_ISO"; what does ...
8 years, 3 months ago (2012-09-18 00:46:33 UTC) #3
Alan Knight
https://codereview.chromium.org/10939002/diff/3001/pkg/intl/intl.dart File pkg/intl/intl.dart (right): https://codereview.chromium.org/10939002/diff/3001/pkg/intl/intl.dart#newcode145 pkg/intl/intl.dart:145: if (aLocale == "C") return "en_ISO"; On 2012/09/18 00:46:33, ...
8 years, 3 months ago (2012-09-18 17:08:36 UTC) #4
Emily Fortuna
8 years, 3 months ago (2012-09-18 17:38:09 UTC) #5
https://codereview.chromium.org/10939002/diff/3001/pkg/intl/intl.dart
File pkg/intl/intl.dart (right):

https://codereview.chromium.org/10939002/diff/3001/pkg/intl/intl.dart#newcode145
pkg/intl/intl.dart:145: if (aLocale == "C") return "en_ISO";
On 2012/09/18 17:08:36, Alan Knight wrote:
> On 2012/09/18 00:46:33, Emily Fortuna wrote:
> > what does "C" mean?
> 
> It's an old Unix locale, also referred to as the Posix locale. It uses 7-bit
> ascii, and some basic date formatting conventions. You don't see it a whole
lot
> on a real system nowadays, but you do get it as the locale on Cygwin, so I
> thought it was worth compensating for it, and at least making sure it got
> English conventions. The en_ISO is probably not quite right for date and
number
> formats, but I don't think we're likely to see it for end users, so it's
> probably ok if we're close enough. But I put in a TODO to validate it and
> consider including real data for it.

Can you maybe mention a little bit of that in your comment above? (ignore if
this is common knowledge)

Powered by Google App Engine
This is Rietveld 408576698