← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 713091] [NEW] [6.0.1] locale regression: Error: unsupported locale setting

 

Public bug reported:

Hello


today's commit #4513 cpa@xxxxxxxxxxx-20110204071214-j44sdr5vre2xft5u 
introduced a regression fro us in Brazil. We use the language pt_BR in OpenERP and have the following locale on Ubuntu 10.0.10 (/etc/default/locale) :
LANG="pt_BR.UTF-8"
LANGUAGE="pt_BR:pt:en"


But now, as soon as we login, we get that blocker error:


189.60.36.156 - - [04/Feb/2011:11:18:33] "GET /openerp/static/css/style.css HTTP/1.1" 304 - "http://dreamon:8080/openerp/login?db=&user="; "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.642.2 Safari/534.16"
[04/Feb/2011:11:18:41] HTTP 
Request Headers:
  ACCEPT: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  Content-Type: application/x-www-form-urlencoded
  REFERER: http://cetel.dyndns.org:8080/openerp/login?db=&user=
  HOST: cetel.dyndns.org:8080
  ORIGIN: http://cetel.dyndns.org:8080
  CACHE-CONTROL: max-age=0
  Content-Length: 63
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
  USER-AGENT: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.642.2 Safari/534.16
  CONNECTION: keep-alive
  COOKIE: session_id=2806d822e6b3d2b618f3b11faa595dd75ccd9799
  Remote-Addr: 189.60.36.156
  ACCEPT-LANGUAGE: en-US,en;q=0.8
  ACCEPT-ENCODING: gzip,deflate,sdch
[04/Feb/2011:11:18:41] HTTP Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/opt/openerp-trunk/web/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/opt/openerp-trunk/web/openobject/controllers/_root.py", line 87, in default
    return request.handler()
  File "/usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/opt/openerp-trunk/web/addons/openerp/controllers/utils.py", line 128, in wrapper
    if rpc.session.login(db, user, password) <= 0:
  File "/opt/openerp-trunk/web/addons/openerp/utils/rpc.py", line 300, in login
    self._logged_as(db, uid, password)
  File "/opt/openerp-trunk/web/addons/openerp/utils/rpc.py", line 315, in _logged_as
    self.context_reload()
  File "/opt/openerp-trunk/web/addons/openerp/utils/rpc.py", line 358, in context_reload
    locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
  File "/usr/lib/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
Error: unsupported locale setting


Hope this helps

** Affects: openobject-client-web
     Importance: High
         Status: New

** Changed in: openobject-client-web
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/713091

Title:
  [6.0.1] locale regression: Error: unsupported locale setting

Status in OpenERP Web Client:
  New

Bug description:
  Hello

  
  today's commit #4513 cpa@xxxxxxxxxxx-20110204071214-j44sdr5vre2xft5u 
  introduced a regression fro us in Brazil. We use the language pt_BR in OpenERP and have the following locale on Ubuntu 10.0.10 (/etc/default/locale) :
  LANG="pt_BR.UTF-8"
  LANGUAGE="pt_BR:pt:en"

  
  But now, as soon as we login, we get that blocker error:

  
  189.60.36.156 - - [04/Feb/2011:11:18:33] "GET /openerp/static/css/style.css HTTP/1.1" 304 - "http://dreamon:8080/openerp/login?db=&user="; "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.642.2 Safari/534.16"
  [04/Feb/2011:11:18:41] HTTP 
  Request Headers:
    ACCEPT: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Content-Type: application/x-www-form-urlencoded
    REFERER: http://cetel.dyndns.org:8080/openerp/login?db=&user=
    HOST: cetel.dyndns.org:8080
    ORIGIN: http://cetel.dyndns.org:8080
    CACHE-CONTROL: max-age=0
    Content-Length: 63
    ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    USER-AGENT: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.642.2 Safari/534.16
    CONNECTION: keep-alive
    COOKIE: session_id=2806d822e6b3d2b618f3b11faa595dd75ccd9799
    Remote-Addr: 189.60.36.156
    ACCEPT-LANGUAGE: en-US,en;q=0.8
    ACCEPT-ENCODING: gzip,deflate,sdch
  [04/Feb/2011:11:18:41] HTTP Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.6/cherrypy/_cprequest.py", line 606, in respond
      cherrypy.response.body = self.handler()
    File "/usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py", line 25, in __call__
      return self.callable(*self.args, **self.kwargs)
    File "/opt/openerp-trunk/web/openobject/tools/_expose.py", line 182, in func_wrapper
      res = func(*args, **kw)
    File "/opt/openerp-trunk/web/openobject/controllers/_root.py", line 87, in default
      return request.handler()
    File "/usr/lib/pymodules/python2.6/cherrypy/_cpdispatch.py", line 25, in __call__
      return self.callable(*self.args, **self.kwargs)
    File "/opt/openerp-trunk/web/addons/openerp/controllers/utils.py", line 128, in wrapper
      if rpc.session.login(db, user, password) <= 0:
    File "/opt/openerp-trunk/web/addons/openerp/utils/rpc.py", line 300, in login
      self._logged_as(db, uid, password)
    File "/opt/openerp-trunk/web/addons/openerp/utils/rpc.py", line 315, in _logged_as
      self.context_reload()
    File "/opt/openerp-trunk/web/addons/openerp/utils/rpc.py", line 358, in context_reload
      locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
    File "/usr/lib/python2.6/locale.py", line 513, in setlocale
      return _setlocale(category, locale)
  Error: unsupported locale setting

  
  Hope this helps





Follow ups

References