Patchwork D9260: i18n: fix coding tag unsupported by xgettext

login
register
mail settings
Submitter phabricator
Date Oct. 29, 2020, 12:56 p.m.
Message ID <differential-rev-PHID-DREV-r24ktqmsauyhzqopxji3-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47531/
State Superseded
Headers show

Comments

phabricator - Oct. 29, 2020, 12:56 p.m.
danchr created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Running `make update-pot` currently fails with the following error:
  
  xgettext: mercurial/metadata.py:1: Unknown encoding "utf8". Proceeding with ASCII instead.
  xgettext: Non-ASCII string at mercurial/metadata.py:311.
  
    Please specify the source encoding through --from-code or through a comment
    as specified in http://www.python.org/peps/pep-0263.html.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D9260

AFFECTED FILES
  mercurial/metadata.py

CHANGE DETAILS




To: danchr, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/metadata.py b/mercurial/metadata.py
--- a/mercurial/metadata.py
+++ b/mercurial/metadata.py
@@ -1,4 +1,4 @@ 
-# coding: utf8
+# coding: utf-8
 # metadata.py -- code related to various metadata computation and access.
 #
 # Copyright 2019 Google, Inc <martinvonz@google.com>