aboutsummaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-31 05:12:32 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-31 05:12:32 +0000
commitf3c43ae0c2d7ceb7d219a35e956600e0db6ebcab (patch)
treea8073a384c7d77b2fc72141353e9ccafe266b471 /transcode.c
parentbb239558b824759d4892d13f8676861584c1d52f (diff)
downloadruby-f3c43ae0c2d7ceb7d219a35e956600e0db6ebcab.tar.gz
* transcode.c (make_econv_exception): error message simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/transcode.c b/transcode.c
index 9c87a9fa0b..420f5752ff 100644
--- a/transcode.c
+++ b/transcode.c
@@ -1648,20 +1648,20 @@ make_econv_exception(rb_econv_t *ec)
VALUE bytes2 = Qnil;
VALUE dumped2;
if (ec->last_error.result == econv_incomplete_input) {
- mesg = rb_sprintf("incomplete input: %s on %s",
+ mesg = rb_sprintf("incomplete %s on %s",
StringValueCStr(dumped),
ec->last_error.source_encoding);
}
else if (readagain_len) {
bytes2 = rb_str_new(err+error_len, readagain_len);
dumped2 = rb_str_dump(bytes2);
- mesg = rb_sprintf("invalid byte sequence: %s followed by %s on %s",
+ mesg = rb_sprintf("%s followed by %s on %s",
StringValueCStr(dumped),
StringValueCStr(dumped2),
ec->last_error.source_encoding);
}
else {
- mesg = rb_sprintf("invalid byte sequence: %s on %s",
+ mesg = rb_sprintf("%s on %s",
StringValueCStr(dumped),
ec->last_error.source_encoding);
}
@@ -1680,7 +1680,7 @@ make_econv_exception(rb_econv_t *ec)
VALUE dumped;
int idx;
dumped = rb_str_dump(bytes);
- mesg = rb_sprintf("conversion undefined: %s from %s to %s",
+ mesg = rb_sprintf("%s from %s to %s",
StringValueCStr(dumped),
ec->last_error.source_encoding,
ec->last_error.destination_encoding);