[parrot/parrot] 2dcc1f: [BUGFIX] Fix issue #942

GitHub noreply at github.com
Tue Mar 12 01:50:48 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/parrot/parrot
  Commit: 2dcc1f4d5a258b72767591c1665dfbdc5e1478a7
      https://github.com/parrot/parrot/commit/2dcc1f4d5a258b72767591c1665dfbdc5e1478a7
  Author: Gerhard R <gerd.r.devel at googlemail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

  Changed paths:
    M src/io/utilities.c

  Log Message:
  -----------
  [BUGFIX] Fix issue #942

io_readline_encoded_string() used to wait for max_bytes_per_codepoint
bytes, which is 4 in case of UTF-8.

However, as UTF-8 is variable-length, there's no guarantee that we'll actually
receive that many bytes and we might hang until the stream gets closed.


  Commit: bba45f716af6b76633c5e1771b89c917827aac21
      https://github.com/parrot/parrot/commit/bba45f716af6b76633c5e1771b89c917827aac21
  Author: Gerhard R <gerd.r.devel at googlemail.com>
  Date:   2013-03-10 (Sun, 10 Mar 2013)

  Changed paths:
    M src/io/utilities.c

  Log Message:
  -----------
  Fix another incorrect use of max_bytes_per_codepoint and adjust loop termination condition


  Commit: 3c59862dec40205cde331b8c302eae4df4f47103
      https://github.com/parrot/parrot/commit/3c59862dec40205cde331b8c302eae4df4f47103
  Author: Gerhard R <gerd.r.devel at googlemail.com>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

  Changed paths:
    M src/io/utilities.c

  Log Message:
  -----------
  Add notes about changes io_readline_encoded_string()

Also marks io_read_encoded_string() as FIXME


  Commit: fb2e9570d25950c568edc50c1f9f5b1e0275bc2a
      https://github.com/parrot/parrot/commit/fb2e9570d25950c568edc50c1f9f5b1e0275bc2a
  Author: Jimmy Zhuo <zhuomingliang at yahoo.com.cn>
  Date:   2013-03-11 (Mon, 11 Mar 2013)

  Changed paths:
    M src/io/utilities.c

  Log Message:
  -----------
  Merge pull request #943 from gerdr/fix-socket-readline

[BUGFIX] Fix issue #942


Compare: https://github.com/parrot/parrot/compare/83bb8639bc79...fb2e9570d259


More information about the parrot-commits mailing list