diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-12-14 16:10:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-12-14 16:10:38 +0000 |
commit | 1edd727fd765e04ae52c42e758508df8ccf4e6bf (patch) | |
tree | 927393ca7848f84dceb184355cb277b3b58a8b65 /gpsdclient.c | |
parent | a1a958fc2df758eee74560584439a576758ac387 (diff) | |
download | gpsd-1edd727fd765e04ae52c42e758508df8ccf4e6bf.tar.gz |
en_US.UTF-8 (normal for Ubuntu) should be treated as en_US...
...for purposes of chosing client units.
Diffstat (limited to 'gpsdclient.c')
-rw-r--r-- | gpsdclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsdclient.c b/gpsdclient.c index a2ed8c03..26d88477 100644 --- a/gpsdclient.c +++ b/gpsdclient.c @@ -117,7 +117,7 @@ enum unit gpsd_units(void) } if (((envu = getenv("LC_MEASUREMENT")) != NULL && *envu != '\0') || ((envu = getenv("LANG")) != NULL && *envu != '\0')) { - if (strcasecmp(envu, "en_US")==0 + if (strncasecmp(envu, "en_US", 5)==0 || strcasecmp(envu, "C")==0 || strcasecmp(envu, "POSIX")==0) { return imperial; |