[ruby-cvs:72135] nobu:r65035 (trunk): Fix overwritten zone string

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Oct 13 00:48:06 JST 2018

nobu	2018-10-13 00:48:06 +0900 (Sat, 13 Oct 2018)

  New Revision: 65035


    Fix overwritten zone string
    * time.c (zone_str): while rb_fstring_usascii and the family
      require that the argument string is never modified, tzname may
      point areas which will be discarded by calling tzset().
      make a String then call rb_fstring to copy the zone name.
      when an ID equals TZ environment variable, its name string also
      has modified by changing tzname.

  Modified files:

More information about the ruby-cvs mailing list