Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1011)

Issue 563860043: weblinks: Fix encoding of link texts (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years ago by hahnjo
Modified:
4 years ago
Reviewers:
hanwenn
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

weblinks: Fix encoding of link texts When switching to Python 3, I added the call of .encode('utf-8') to fix the build with Python 3.5. This converts all link texts into binary encoding, enclosed by b'...'. The correct fix is to force utf-8 encoding for sys.stdout. See e0c78a4c71 ("Use codecs.open() to decode as utf-8") for more details on this issue and how the default changes with Python 3.7.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M scripts/build/create-weblinks-itexi.py View 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 2
hanwenn
LGTM shortcut push? I can update the scripts afterwards.
4 years ago (2020-04-12 12:36:22 UTC) #1
hahnjo
4 years ago (2020-04-12 13:22:44 UTC) #2
On 2020/04/12 12:36:22, hanwenn wrote:
> LGTM 
> 
> shortcut push? I can update the scripts afterwards.

commit 23dbc2090b1f45ae26c7f88af6945bde00cb2ddd
Author: Jonas Hahnfeld <hahnjo@hahnjo.de>
Date:   Sun Apr 12 14:11:37 2020 +0200

    weblinks: Fix encoding of link texts

in staging
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b