зеркало из https://github.com/github/ruby.git
* sample/test.rb (valid_syntax): force_encoding input script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fede8b213b
Коммит
389278af97
|
@ -1,3 +1,7 @@
|
|||
Sat Dec 22 00:56:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* sample/test.rb (valid_syntax): force_encoding input script.
|
||||
|
||||
Fri Dec 21 23:48:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (depend_rules): suffixes list broken. fixed.
|
||||
|
|
|
@ -1866,6 +1866,7 @@ end
|
|||
|
||||
def valid_syntax?(code, fname)
|
||||
p fname
|
||||
code.force_encoding("ascii-8bit")
|
||||
code = code.sub(/\A(?:\s*\#.*$)*(\n)?/n) {
|
||||
"#$&#{"\n" if $1 && !$2}BEGIN{return true}\n"
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.9.0"
|
||||
#define RUBY_RELEASE_DATE "2007-12-21"
|
||||
#define RUBY_RELEASE_DATE "2007-12-22"
|
||||
#define RUBY_VERSION_CODE 190
|
||||
#define RUBY_RELEASE_CODE 20071221
|
||||
#define RUBY_RELEASE_CODE 20071222
|
||||
#define RUBY_PATCHLEVEL 0
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2007
|
||||
#define RUBY_RELEASE_MONTH 12
|
||||
#define RUBY_RELEASE_DAY 21
|
||||
#define RUBY_RELEASE_DAY 22
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Загрузка…
Ссылка в новой задаче