pombreda / gcalcli

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

Option --nc doesn't throws an exception. #92

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a file ~/.gcalclirc and add some options (optional)
2. From the terminal enter: gcalcli --nc calw 4 - doesn't work
3. From the terminal enter: gcalcli -calw 4 - works properly

What is the expected output? What do you see instead?
What I see:
beniamin@beniamin-ubuntu:~$ gcalcli --nc calw 4

+----------+----------+----------+----------+----------+----------+----------+
|Sunday    |Monday    |Tuesday   |Wednesday |Thursday  |Friday    |Saturday  |
+----------+----------+----------+----------+----------+----------+----------+
|24 Jun    |25 Jun ** |26 Jun    |27 Jun    |28 Jun    |29 Jun    |30 Jun    |
|          |          |          |          |          |          |          |
Traceback (most recent call last):
  File "/usr/bin/gcalcli", line 1524, in <module>
    BowChickaWowWow()
  File "/usr/bin/gcalcli", line 1469, in BowChickaWowWow
    gcal.CalQuery(args[0], count=int(args[1]))
  File "/usr/bin/gcalcli", line 1011, in CalQuery
    self._GraphEvents(cmd, start, count, eventList)
  File "/usr/bin/gcalcli", line 712, in _GraphEvents
    PrintMsg(CLR_NRM(), line + "\n")
  File "/usr/bin/gcalcli", line 239, in PrintMsg
    sys.stdout.write(unicode(msg, 'UTF-8'))
TypeError: decoding Unicode is not supported

What I should see:
+----------+----------+----------+----------+----------+----------+----------+
|Sunday    |Monday    |Tuesday   |Wednesday |Thursday  |Friday    |Saturday  |
+----------+----------+----------+----------+----------+----------+----------+
|24 Jun    |25 Jun ** |26 Jun    |27 Jun    |28 Jun    |29 Jun    |30 Jun    |
|          |          |          |          |          |          |          |
|          |          |9:00am    |          |          |          |          |
|          |          |Konferencj|          |          |          |          |
|          |          |a GigaCon |          |          |          |          |
+----------+----------+----------+----------+----------+----------+----------+
|01 Jul    |02 Jul    |03 Jul    |04 Jul    |05 Jul    |06 Jul    |07 Jul    |
+----------+----------+----------+----------+----------+----------+----------+
|08 Jul    |09 Jul    |10 Jul    |11 Jul    |12 Jul    |13 Jul    |14 Jul    |
+----------+----------+----------+----------+----------+----------+----------+
|15 Jul    |16 Jul    |17 Jul    |18 Jul    |19 Jul    |20 Jul    |21 Jul    |
+----------+----------+----------+----------+----------+----------+----------+

What version of the product are you using? On what operating system?
gcalcli v2.1 (Eric Davis)

Please provide any additional information below.

Original issue reported on code.google.com by Beniamin...@gmail.com on 25 Jun 2012 at 12:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same issue on debian wheezy!

Original comment by omle...@gmail.com on 18 Jan 2013 at 8:01

GoogleCodeExporter commented 9 years ago
Wrong place for posting issues. Project moved to github, make sure you're 
running latest code too...

Original comment by eda...@insanum.com on 18 Jan 2013 at 6:36