summaryrefslogtreecommitdiff
path: root/strftime.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:53:58 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-25 09:53:58 +0000
commitae4b0c25f0b39a1647d0500602c4f5cb3d6da6bb (patch)
tree0cfb03e5b6dad725d7a4b41dad627380bb81bc34 /strftime.c
parent2562e1faef68f7cf1f35dc90a98e86f17d2a0a76 (diff)
merges r20944 from trunk into ruby_1_9_1.
* strftime.c (rb_strftime): use locale insensitive functions for tr_TR locale. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/strftime.c b/strftime.c
index 248c695e01..38167fd384 100644
--- a/strftime.c
+++ b/strftime.c
@@ -627,8 +627,8 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct tm *timept
timeptr->tm_year + 1900L);
if (w < 0) goto err;
for (i = 3; i < 6; i++)
- if (islower(s[i]))
- s[i] = toupper(s[i]);
+ if (ISLOWER(s[i]))
+ s[i] = TOUPPER(s[i]);
s += w;
continue;
#endif
@@ -781,12 +781,12 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct tm *timept
switch (flags & (BIT_OF(UPPER)|BIT_OF(LOWER))) {
case BIT_OF(UPPER):
do {
- if (islower(*s)) *s = toupper(*s);
+ if (ISLOWER(*s)) *s = TOUPPER(*s);
} while (s++, --i);
break;
case BIT_OF(LOWER):
do {
- if (isupper(*s)) *s = tolower(*s);
+ if (ISUPPER(*s)) *s = TOLOWER(*s);
} while (s++, --i);
break;
default: