From owner-freebsd-python@FreeBSD.ORG Tue Nov 11 10:11:55 2008 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32AF21065672 for ; Tue, 11 Nov 2008 10:11:55 +0000 (UTC) (envelope-from Mathias.Picker@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 6D9E68FC20 for ; Tue, 11 Nov 2008 10:11:54 +0000 (UTC) (envelope-from Mathias.Picker@gmx.de) Received: (qmail invoked by alias); 11 Nov 2008 09:45:12 -0000 Received: from dslb-084-056-028-064.pools.arcor-ip.net (EHLO [192.168.178.28]) [84.56.28.64] by mail.gmx.net (mp047) with SMTP; 11 Nov 2008 10:45:12 +0100 X-Authenticated: #23891974 X-Provags-ID: V01U2FsdGVkX19Cv9RlJwhCB7VJzfL6mtDORIE4xYx7clh2h+25a+ 24qYQofa4XmZmX From: Mathias Picker To: python@FreeBSD.org Content-Type: text/plain Date: Tue, 11 Nov 2008 10:45:11 +0100 Message-Id: <1226396711.1685.16.camel@mp.virtual-earth.de> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65 Cc: Subject: locale.getlocale returns encoding UTF8, should it better be UTF-8? X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 10:11:55 -0000 When testing the current OpenErp client on FreeBSD it showed me WARNING:translate:Unable to set locale de_DE.UTF8 My LANG is set to de_DE.UTF-8 Investigating this I found that locale.getlocale returned UTF8 as character encoding. FreeBSD uses UTF-8, so maybe this should be changed? After I patched the openerp client with if encoding == 'UTF8': encoding = 'UTF-8' it starts without error msg, and (as far as it's translated) in german. This is on 7.1-prerelease with python python25-2.5.2_3