July 17, 2014 [phobos] [D-Programming-Language/phobos] e162b2: Don't use fprintf to output D strings since they m... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: e162b2a0d5e1a3224bad66272e91c6c7f359a9d7 https://github.com/D-Programming-Language/phobos/commit/e162b2a0d5e1a3224bad66272e91c6c7f359a9d7 Author: H. S. Teoh <hsteoh@quickfur.ath.cx> Date: 2014-07-15 (Tue, 15 Jul 2014) Changed paths: M std/stdio.d Log Message: ----------- Don't use fprintf to output D strings since they might contain embedded nulls. Instead, use fwrite to output the string in its entirety. It's probably more efficient this way anyway, since we bypass format string parsing in fprintf. Commit: 94942605d212f1ceac1c42b03e589dcc8574d445 https://github.com/D-Programming-Language/phobos/commit/94942605d212f1ceac1c42b03e589dcc8574d445 Author: H. S. Teoh <hsteoh@quickfur.ath.cx> Date: 2014-07-15 (Tue, 15 Jul 2014) Changed paths: M std/stdio.d Log Message: ----------- Update unittest to check for correct writing of embedded nulls. Commit: 4f81791438d283edbe508125bbc13ff00e959dd2 https://github.com/D-Programming-Language/phobos/commit/4f81791438d283edbe508125bbc13ff00e959dd2 Author: Михаил Страшун <public@dicebot.lv> Date: 2014-07-17 (Thu, 17 Jul 2014) Changed paths: M std/stdio.d Log Message: ----------- Merge pull request #2334 from quickfur/issue8730 std.stdio.writeln should write strings with embedded nulls correctly Compare: https://github.com/D-Programming-Language/phobos/compare/4a1149127af6...4f81791438d2 |
Copyright © 1999-2021 by the D Language Foundation