remcoboerma / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

Expects certain non-None results from locale.getdefaultlocale() #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

1. cd $HOME/tmp
2. svn co http://jbrout.googlecode.com/svn/trunk/jbrout jbrout
3. cd jbrout
4. python jbrout.py

> What is the expected output? What do you see instead?

I expect it to run.  Instead I get a traceback (below)

> What version of the product are you using? On what operating system?

Latest SVN checkout (r349) on Debian Stable.

> Please provide any additional information below.

Traceback (most recent call last):
  File "jbrout.py", line 41, in <module>
    locale.setlocale(locale.LC_ALL, '.'.join(locale.getdefaultlocale()))
TypeError: sequence item 0: expected string, NoneType found

To help diagnose:

  $ env | grep LANG
  LANG=C
  $ python
  Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) 
  [GCC 4.4.5] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> import locale
  >>> locale.getdefaultlocale()
  (None, None)

Original issue reported on code.google.com by timothyk...@gmail.com on 18 Feb 2013 at 7:17

GoogleCodeExporter commented 9 years ago

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 10:40

GoogleCodeExporter commented 9 years ago

Original comment by matej.c...@gmail.com on 12 Aug 2013 at 11:23

GoogleCodeExporter commented 9 years ago
Most likely fixed by r350 (except the commit message was too bad to recognize 
it).

Original comment by matej.c...@gmail.com on 28 Aug 2013 at 1:59