Hello,

I get this bug, when I use BE from different locals.

Here how to reproduce it

Luis


$ be init
Using git for revision control.
BE repository initialized.

$ echo $LANG
en_US.utf8
$ be new -aluis issue33
Created bug with ID d87/da5

$ be show d8/da5
          ID : da559b28-cca0-467d-aded-1dd1772a2c8e
  Short name : d87/da5
    Severity : minor
      Status : open
    Assigned : luis
    Reporter : Luis Belmar-Letelier <[email protected]>
     Creator : Luis Belmar-Letelier <[email protected]>
     Created : Mon, 28 Jul 2014 17:19 (Mon, 28 Jul 2014 15:19:35 +0000)
issue33

$ export LANG=fr_FR.utf8
(lab) [][luis@spinoza test]$ be show d8/da5
Traceback (most recent call last):
  File "/home/luis/lab/bin/be", line 26, in <module>
    sys.exit(libbe.ui.command_line.main())
  File
"/home/luis/lab/lib/python2.7/site-packages/libbe/ui/command_line.py", line
393, in main
    ret = dispatch(ui, command, args)
  File
"/home/luis/lab/lib/python2.7/site-packages/libbe/ui/command_line.py", line
305, in dispatch
    ret = ui.run(command, options, args)
  File "/home/luis/lab/lib/python2.7/site-packages/libbe/command/base.py",
line 590, in run
    return command.run(options, args)
  File "/home/luis/lab/lib/python2.7/site-packages/libbe/command/base.py",
line 302, in run
    self.status = self._run(**params)
  File "/home/luis/lab/lib/python2.7/site-packages/libbe/command/show.py",
line 118, in _run
    with_comments=not params['no-comments'])
  File "/home/luis/lab/lib/python2.7/site-packages/libbe/command/show.py",
line 186, in output
    lines.append(bug.string(show_comments=with_comments))
  File "/home/luis/lab/lib/python2.7/site-packages/libbe/bug.py", line 334,
in string
    if self.time == None:
  File "/home/luis/lab/lib/python2.7/site-packages/libbe/bug.py", line 210,
in _get_time
    self._cached_time = utility.str_to_time(self.time_string)
  File "/home/luis/lab/lib/python2.7/site-packages/libbe/util/utility.py",
line 162, in str_to_time
    time_val = calendar.timegm(time.strptime(str_time, RFC_2822_TIME_FMT))
  File "/usr/lib/python2.7/_strptime.py", line 467, in _strptime_time
    return _strptime(data_string, format)[0]
  File "/usr/lib/python2.7/_strptime.py", line 325, in _strptime
    (data_string, format))
ValueError: time data u'Mon, 28 Jul 2014 15:19:35 +0000' does not match
format '%a, %d %b %Y %H:%M:%S +0000'
(lab) [][luis@spinoza test]$
_______________________________________________
Be-devel mailing list
[email protected]
http://void.printf.net/cgi-bin/mailman/listinfo/be-devel

Reply via email to