From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 640BD1387FD for ; Fri, 4 Apr 2014 23:01:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 62956E09DF; Fri, 4 Apr 2014 23:01:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CFFB2E09ED for ; Fri, 4 Apr 2014 23:01:11 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0654233FAAE for ; Fri, 4 Apr 2014 23:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id BA7E1188F5 for ; Fri, 4 Apr 2014 23:01:09 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1396652141.2bca0671b20207b391c58453892b8158b90b128f.dol-sen@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/main.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 2bca0671b20207b391c58453892b8158b90b128f X-VCS-Branch: master Date: Fri, 4 Apr 2014 23:01:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 674fda5a-a4c2-4147-9a01-a8ec5f038011 X-Archives-Hash: baddbfc78e241cc2f761a1c50857336f commit: 2bca0671b20207b391c58453892b8158b90b128f Author: Michał Górny gentoo org> AuthorDate: Sat Mar 29 18:45:29 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri Apr 4 22:55:41 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=2bca0671 emerge: call setlocale() to enable system locale This is necessary so that the size formatting function (and possibly other locale-dependant functions in the future) respect the system locale rather than using the 'C' locale. --- pym/_emerge/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index cfe1332..eddb16c 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -3,6 +3,7 @@ from __future__ import print_function +import locale import platform import sys @@ -984,6 +985,9 @@ def emerge_main(args=None): args = portage._decode_argv(args) + # Use system locale. + locale.setlocale(locale.LC_ALL, '') + # Disable color until we're sure that it should be enabled (after # EMERGE_DEFAULT_OPTS has been parsed). portage.output.havecolor = 0