diff options
| author | roco <[email protected]> | 2012-04-30 14:29:19 -0700 |
|---|---|---|
| committer | roco <[email protected]> | 2012-04-30 14:29:19 -0700 |
| commit | 4ec6d41f16e20fadc6f4c0de363a26a59a1a13fb (patch) | |
| tree | 40539734fd32004652f7c98e2b88921aa57c8b25 /src/encoding.c | |
| parent | 6b739d91735fe83bd29f6ca8505c00d530e85584 (diff) | |
| download | mruby-4ec6d41f16e20fadc6f4c0de363a26a59a1a13fb.tar.gz mruby-4ec6d41f16e20fadc6f4c0de363a26a59a1a13fb.zip | |
rm whitespace
Diffstat (limited to 'src/encoding.c')
| -rw-r--r-- | src/encoding.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/encoding.c b/src/encoding.c index 2f698865b..54cf290c2 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -1,6 +1,6 @@ /* ** encoding.c - Encoding class -** +** ** See Copyright Notice in mruby.h */ @@ -1376,14 +1376,14 @@ nl_langinfo_codeset(void) p = strchr(l, '.'); if (!p++) p = l; if (strstart(p, "UTF")) - return "UTF-8"; + return "UTF-8"; if ((n = 5, strstart(p, "8859-")) || (n = 9, strstart(p, "ISO-8859-"))) { if (digit(p[n])) { - p += n; - memcpy(buf, "ISO-8859-\0\0", 12); - buf[9] = *p++; - if (digit(*p)) buf[10] = *p++; - return buf; + p += n; + memcpy(buf, "ISO-8859-\0\0", 12); + buf[9] = *p++; + if (digit(*p)) buf[10] = *p++; + return buf; } } if (strstart(p, "KOI8-R")) return "KOI8-R"; @@ -1406,8 +1406,8 @@ nl_langinfo_codeset(void) if (strstart(l, "ru")) return "KOI8-R"; if (strstart(l, "uk")) return "KOI8-U"; if (strstart(l, "pl") || strstart(l, "hr") || - strstart(l, "hu") || strstart(l, "cs") || - strstart(l, "sk") || strstart(l, "sl")) return "ISO-8859-2"; + strstart(l, "hu") || strstart(l, "cs") || + strstart(l, "sk") || strstart(l, "sl")) return "ISO-8859-2"; if (strstart(l, "eo") || strstart(l, "mt")) return "ISO-8859-3"; if (strstart(l, "el")) return "ISO-8859-7"; if (strstart(l, "he")) return "ISO-8859-8"; |
