1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/date/date_strftime.c: checks duplicated modifiers.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2011-03-20 14:11:16 +00:00
parent 7adef00759
commit d9dd52acbf
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Sun Mar 20 23:09:34 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strftime.c: checks duplicated modifiers.
Sun Mar 20 22:32:30 2011 Tadayoshi Funaba <tadf@dotrb.org>
* ext/date/date_strftime.c: removed unused code and arguments.

View file

@ -663,10 +663,12 @@ date_strftime_wo_timespec(char *s, size_t maxsize, const char *format,
case 'E':
/* POSIX locale extensions, ignored for now */
SKIP_MODIFIER_EO;
flags |= BIT_OF(LOCALE_E);
goto again;
case 'O':
/* POSIX locale extensions, ignored for now */
SKIP_MODIFIER_EO;
flags |= BIT_OF(LOCALE_O);
goto again;