[parrot/parrot] 983099: [test] sprintf counts bytes not characters

GitHub noreply at github.com
Tue Oct 14 11:13:27 UTC 2014


  Branch: refs/heads/smoke-me/sprintf-width-gh956
  Home:   https://github.com/parrot/parrot
  Commit: 983099920ab23aa994d428baa892f6dc5c5385a3
      https://github.com/parrot/parrot/commit/983099920ab23aa994d428baa892f6dc5c5385a3
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M t/op/stringu.t

  Log Message:
  -----------
  [test] sprintf counts bytes not characters

Add tests to t/op/stringu.t, written by moritz.
See GH #956 and rakudo bug RT#117547


  Commit: 9ec7e643bdcd9b91ca8937ad2a6ed04ca9be5053
      https://github.com/parrot/parrot/commit/9ec7e643bdcd9b91ca8937ad2a6ed04ca9be5053
  Author: Reini Urban <rurban at cpanel.net>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M src/string/spf_render.c
    M t/op/stringu.t

  Log Message:
  -----------
  [core] fix sprintf width for unicode

sprintf %20s string width should be counted in chars, not bytes.
Fixes GH #956.


Compare: https://github.com/parrot/parrot/compare/983099920ab2^...9ec7e643bdcd


More information about the parrot-commits mailing list