[ruby-cvs:67920] k0kubun:r60739 (trunk): bin/erb: change template file encoding to UTF-8

k0kubun at ruby-lang.org k0kubun at ruby-lang.org
Fri Nov 10 22:59:01 JST 2017


k0kubun	2017-11-10 22:59:01 +0900 (Fri, 10 Nov 2017)

  New Revision: 60739

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60739

  Log:
    bin/erb: change template file encoding to UTF-8
    
    Unlike Ruby source file encoding (script encoding) whose default is
    changed to UTF-8 in Ruby 2.0 (Feature #6679), template's file encoding
    given to erb(1) has been ASCII-8BIT since ERB supports m17n at r21170.
    
    Like Ruby source file encoding, erb template file encoding should be
    UTF-8 in Ruby 2.
    
    [Bug #14095] [ruby-core:83708]

  Modified files:
    trunk/NEWS
    trunk/bin/erb
    trunk/test/erb/test_erb_command.rb


More information about the ruby-cvs mailing list