1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/nkf/nkf-utf8/nkf.c (nkf_enc_from_index): BINARY does not

have in-bound encoding index.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-02-07 00:06:55 +00:00
parent 4f0083e45f
commit 5a8d5c873b
3 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Thu Feb 7 09:05:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/nkf/nkf-utf8/nkf.c (nkf_enc_from_index): BINARY does not
have in-bound encoding index.
Thu Feb 07 04:26:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
* enc/trans/korean.c: add EUC-KR conversion support by Park Ji-In.

View file

@ -674,6 +674,8 @@ static void nkf_str_upcase(const char *src, char *dest, size_t length)
static nkf_encoding *nkf_enc_from_index(int idx)
{
if (idx < 0 || NKF_ENCODING_TABLE_SIZE <= idx) {
if (idx == BINARY)
return &nkf_encoding_table[NKF_ENCODING_TABLE_SIZE];
return 0;
}
return &nkf_encoding_table[idx];

View file

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2008-02-06"
#define RUBY_RELEASE_DATE "2008-02-07"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20080206
#define RUBY_RELEASE_CODE 20080207
#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 2
#define RUBY_RELEASE_DAY 6
#define RUBY_RELEASE_DAY 7
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];