зеркало из https://github.com/github/ruby.git
* string.c (rb_str_justify): should propagate encoding from pad
string too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c3f8c06795
Коммит
ac5250098d
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 19 15:13:20 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_justify): should propagate encoding from pad
|
||||
string too.
|
||||
|
||||
Wed Dec 19 13:57:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (TIMEZONE_VOID): check whether timezone requires zero
|
||||
|
|
2
string.c
2
string.c
|
@ -5023,7 +5023,7 @@ rb_str_justify(int argc, VALUE *argv, VALUE str, char jflag)
|
|||
width = NUM2LONG(w);
|
||||
if (argc == 2) {
|
||||
StringValue(pad);
|
||||
rb_enc_check(str, pad);
|
||||
enc = rb_enc_check(str, pad);
|
||||
f = RSTRING_PTR(pad);
|
||||
flen = RSTRING_LEN(pad);
|
||||
fclen = str_strlen(pad, enc);
|
||||
|
|
Загрузка…
Ссылка в новой задаче