summaryrefslogtreecommitdiffhomepage
path: root/src/encoding.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-04-30 15:41:37 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-04-30 15:41:37 -0700
commit7c9080302801e2f2619c1848627bc310c7f3c1cb (patch)
tree40539734fd32004652f7c98e2b88921aa57c8b25 /src/encoding.c
parent6b739d91735fe83bd29f6ca8505c00d530e85584 (diff)
parent4ec6d41f16e20fadc6f4c0de363a26a59a1a13fb (diff)
downloadmruby-7c9080302801e2f2619c1848627bc310c7f3c1cb.tar.gz
mruby-7c9080302801e2f2619c1848627bc310c7f3c1cb.zip
Merge pull request #79 from rystyle/whitespace
rm whitespace mix
Diffstat (limited to 'src/encoding.c')
-rw-r--r--src/encoding.c18
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";