pombreda / gcalcli

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

non-ascii characters fail #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a claendar whose name contains a non-ascii character
2. run list command

What is the expected output? What do you see instead?
expected: list of calendars
i see: pytohn exception

What version of the product are you using? On what operating system?
svn, rev 16

Please provide any additional information below.
can@iova:~/vc/svn/gcalcli$ ./gcalcli list

 ID  Access  Title
 --  ------  -----
Traceback (most recent call last):
  File "./gcalcli", line 602, in <module>
    DoooooItHippieMonster()
  File "./gcalcli", line 554, in DoooooItHippieMonster
    GoogleCalendar(usr, pwd, access, details).ListAllCalendars()
  File "./gcalcli", line 366, in ListAllCalendars
    format % (i, cal.access_level.value, cal.title.text))
  File "./gcalcli", line 161, in PrintMsg
    sys.stdout.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc7' in
position 23: ordinal not in range(128)
can@iova:~/vc/svn/gcalcli$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Original issue reported on code.google.com by canbu...@gmail.com on 1 Oct 2007 at 7:45

GoogleCodeExporter commented 9 years ago
Yes. I need to add support for unicode and locales... on the list.

Original comment by insa...@gmail.com on 1 Oct 2007 at 7:58

GoogleCodeExporter commented 9 years ago
I think I fixed this problem.  Try gcalcli r17 from svn and let me know...

Original comment by insa...@gmail.com on 1 Oct 2007 at 8:21

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Changed state to fixed.

Original comment by insa...@gmail.com on 1 Oct 2007 at 8:25

GoogleCodeExporter commented 9 years ago
Thanks.

can@iova:~/vc/svn/gcalcli$ ./gcalcli list

 ID  Access  Title
 --  ------  -----
  0   owner  Can B Ç

Original comment by canbu...@gmail.com on 1 Oct 2007 at 9:07

GoogleCodeExporter commented 9 years ago

Original comment by insa...@gmail.com on 5 Oct 2007 at 5:23

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 27 Jul 2011 at 4:59