simon-git: cvt-utf8 (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Sep 25 20:55:02 BST 2020


TL;DR:
  4a8472a Fix double-encoding bug in -o mode.

Repository:     https://git.tartarus.org/simon/cvt-utf8.git
On the web:     https://git.tartarus.org/?p=simon/cvt-utf8.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2020-09-25 20:55:02

commit 4a8472a097fc7794528dcc88e0d270862c460292
web diff https://git.tartarus.org/?p=simon/cvt-utf8.git;a=commitdiff;h=4a8472a097fc7794528dcc88e0d270862c460292;hp=7bd97d9b16117ee9571ea5b19c69aac08fcaca58
Author: Simon Tatham <anakin at pobox.com>
Date:   Fri Sep 25 20:54:38 2020 +0100

    Fix double-encoding bug in -o mode.
    
    In the Python 3 port, I apparently didn't test the part where we try
    to output encoded UTF-8 directly to standard output. I was still
    writing UTF-8 bytes to sys.stdout in the form of chars, which doesn't
    work well in P3. Now I write them to sys.stdout.buffer as bytes.

 cvt-utf8 | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)



More information about the tartarus-commits mailing list