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

* jcode.rb (succ!): call original succ! if $KCODE == 'n'.

fixed: [ruby-talk:216845]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2006-09-29 03:31:01 +00:00
parent d846e10d73
commit a601d81634
2 changed files with 6 additions and 7 deletions

View file

@ -1,13 +1,13 @@
Fri Sep 29 12:11:04 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* jcode.rb (succ!): call original succ! if $KCODE == 'n'.
fixed: [ruby-talk:216845]
Fri Sep 29 11:43:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (try_func): revert fallback checking undeclared function.
fixed: [ruby-core:08949]
Fri Sep 29 10:59:16 2006 WATANABE Hirofumi <eban@ruby-lang.org>
* lib/jcode.rb: need to initialize SUCC['n'].
fixed: [ruby-talk:216845]
Fri Sep 29 09:56:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/extmk.rb: extout is needed for also clean.

View file

@ -24,7 +24,6 @@ class String
RE_UTF8 = Regexp.new(PATTERN_UTF8, 0, 'n')
SUCC = {}
SUCC['n'] = Hash.new(1)
SUCC['s'] = Hash.new(1)
for i in 0 .. 0x3f
SUCC['s'][i.chr] = 0x40 - i
@ -78,7 +77,7 @@ class String
def succ!
reg = end_regexp
if self =~ reg
if $KCODE != 'NONE' && self =~ reg
succ_table = SUCC[$KCODE[0,1].downcase]
begin
self[-1] += succ_table[self[-1]]