diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-25 00:33:11 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-25 00:33:11 +0000 |
commit | 8eb4988a033509c1dcf5a2f315cd92a98d8e53b6 (patch) | |
tree | b1bb03c0250b0a045ec17d500a6820bf279911e6 | |
parent | f32f40cc495d9372cc71a1131ee8298e6bb46cd1 (diff) | |
download | ruby-8eb4988a033509c1dcf5a2f315cd92a98d8e53b6.tar.gz |
* lib/erb.rb (ERB::Compiler#compile): output magic comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/erb.rb | 1 | ||||
-rw-r--r-- | version.h | 6 |
3 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Wed Jun 25 09:31:11 2008 NARUSE, Yui <naruse@ruby-lang.org> + + * lib/erb.rb (ERB::Compiler#compile): output magic comment. + Tue Jun 24 22:14:36 2008 Yusuke Endoh <mame@tsg.ne.jp> * vm_eval.c (eval_string_with_cref): preserve parse_in_eval even if diff --git a/lib/erb.rb b/lib/erb.rb index 2c7e203923..c6e9129120 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -518,6 +518,7 @@ class ERB def compile(s) out = Buffer.new(self) + out.push("# -*- coding: #{s.encoding} -*-") content = '' scanner = make_scanner(s) @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2008-06-24" +#define RUBY_RELEASE_DATE "2008-06-25" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20080624 +#define RUBY_RELEASE_CODE 20080625 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2008 #define RUBY_RELEASE_MONTH 6 -#define RUBY_RELEASE_DAY 24 +#define RUBY_RELEASE_DAY 25 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |