Path: csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod From: Brian May Newsgroups: linux.debian.devel,linux.debian.maint.python Subject: mkdocs locale error building djangorestframework Date: Tue, 26 Jan 2016 01:30:02 +0100 Message-ID: X-Original-To: debian-devel@lists.debian.org, debian-python@lists.debian.org X-Mailbox-Line: From debian-devel-request@lists.debian.org Tue Jan 26 00:29:32 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -6.1 Content-Type: text/plain X-Mailing-List: archive/latest/316886 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87fuxl6v58.fsf@prune.linuxpenguins.xyz Approved: robomod@news.nic.it Lines: 31 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Michael Fladischer , python3-click@packages.debian.org X-Original-Date: Tue, 26 Jan 2016 11:29:07 +1100 X-Original-Message-ID: <87fuxl6v58.fsf@prune.linuxpenguins.xyz> Xref: csiph.com linux.debian.devel:70136 linux.debian.maint.python:8154 Hello, In building djangorestframework, it uses a package called mkdocs. mkdocs in turn uses a package called python3-click to do its command line processing. python3-click has checks to ensure it is called with a non-ASCII locale. Or if it is an ASCII locale, it raises a fatal error. Or at least it tries to raise a fatal error. This is documented in the click documentation: http://click.pocoo.org/5/python3/ An added complication is at the moment the code to display the fatal error is broken under Python 3 - see #812713. You can't compare byte objects and str objects. The problem is that when building djangorestframework, I need to have a utf8 locale available. C.UTF-8 is fine. However, I don't think there is any guarantee (??) that a utf8 locale will be available when building packages. This I believe is the root cause of #812672. So should I somehow be trying to get the UTF-8 locale (is this possible from debian/rules?), or should I submit another bug report against python3-click saying that it really should work in ASCII environments? Regards -- Brian May https://linuxpenguins.xyz/brian/