aboutsummaryrefslogtreecommitdiffstats
path: root/ext/date/date_strftime.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-27 01:04:41 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-05-27 01:04:41 +0000
commit83d8d057c2df674138187718eb2c9423506fa758 (patch)
tree97135e9f8e882cbb67d719ff132810c0f011f2b2 /ext/date/date_strftime.c
parent6ba96bbe4e74c5d6414184b186a6552d7fb23a13 (diff)
downloadruby-83d8d057c2df674138187718eb2c9423506fa758.tar.gz
* ext/date/date_strftime.c: allows %Ok and %Ol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_strftime.c')
-rw-r--r--ext/date/date_strftime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/date/date_strftime.c b/ext/date/date_strftime.c
index 4236666fa6..b162413b90 100644
--- a/ext/date/date_strftime.c
+++ b/ext/date/date_strftime.c
@@ -526,8 +526,7 @@ date_strftime_with_tmx(char *s, size_t maxsize, const char *format,
case 'O':
/* POSIX locale extensions, ignored for now */
flags |= BIT_OF(LOCALE_O);
- if (*(format + 1) && strchr("deHImMSuUVwWy",
- *(format + 1)))
+ if (*(format + 1) && strchr("deHkIlmMSuUVwWy", *(format + 1)))
goto again;
goto unknown;