* encoding.c (rb_enc_codelen): error message refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8bb84c92d4
commit
cd2fd33edf
@ -1,3 +1,7 @@
|
||||
Thu Dec 27 15:18:44 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* encoding.c (rb_enc_codelen): error message refined.
|
||||
|
||||
Thu Dec 27 15:11:27 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* encoding.c (rb_enc_check): show encodings in error message.
|
||||
|
@ -680,7 +680,7 @@ rb_enc_codelen(int c, rb_encoding *enc)
|
||||
{
|
||||
int n = ONIGENC_CODE_TO_MBCLEN(enc,c);
|
||||
if (n == 0) {
|
||||
rb_raise(rb_eArgError, "invalid mbstring sequence");
|
||||
rb_raise(rb_eArgError, "invalid codepoint");
|
||||
}
|
||||
return n;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user