mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/trans/utf8_mac.trans (buf_shift_char): don't see uninitialised
value. [ruby-dev:40233] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
796931aa09
commit
6899b6ff80
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jan 29 09:43:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* enc/trans/utf8_mac.trans (buf_shift_char): don't see uninitialised
|
||||
value. [ruby-dev:40233]
|
||||
|
||||
Fri Jan 29 01:42:24 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/delegate.rb (Delegator#initialize_copy): use initialize_copy
|
||||
|
|
|
@ -85,10 +85,10 @@ buf_shift(struct from_utf8_mac_status *sp)
|
|||
void
|
||||
buf_shift_char(struct from_utf8_mac_status *sp)
|
||||
{
|
||||
while (sp->beg != sp->end) {
|
||||
if (sp->beg == sp->end) return;
|
||||
do {
|
||||
buf_shift(sp);
|
||||
if ((sp->buf[sp->beg] & 0xC0) != 0x80) break;
|
||||
}
|
||||
} while (sp->beg != sp->end && (sp->buf[sp->beg] & 0xC0) == 0x80);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Reference in a new issue