mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Store String as zone in struct vtm.
This removes zone_table and use fstring instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
60012d130c
commit
277cedb84c
3 changed files with 50 additions and 68 deletions
|
@ -619,11 +619,11 @@ rb_strftime_with_timespec(VALUE ftime, const char *format, size_t format_len,
|
|||
tp = "UTC";
|
||||
break;
|
||||
}
|
||||
if (vtm->zone == NULL) {
|
||||
if (NIL_P(vtm->zone)) {
|
||||
i = 0;
|
||||
}
|
||||
else {
|
||||
tp = vtm->zone;
|
||||
tp = RSTRING_PTR(vtm->zone);
|
||||
if (enc) {
|
||||
for (i = 0; i < TBUFSIZE && tp[i]; i++) {
|
||||
if ((unsigned char)tp[i] > 0x7F) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue