salimoha / googlecl

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

calendar delete doesn't work with extended charset characters #289

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This doesn't work:

#google calendar add "4pm test é"
#google calendar delete -n "test é"
For calendar ...@gmail.com
No events found that match your options!

While this, with just 7bit Ascii, works :

#google calendar add "4pm test 1"
#google calendar delete -n "test 1"
For calendar ...@gmail.com
Are you SURE you want to delete event "test 1"? (y/N): y

Same happens with square brackets.
Cheers

Original issue reported on code.google.com by spectro....@gmail.com on 20 Sep 2010 at 11:39

GoogleCodeExporter commented 9 years ago
Verified this with r422. Weird. Thanks for reporting it!

Original comment by tom.h.mi...@gmail.com on 21 Sep 2010 at 4:30

GoogleCodeExporter commented 9 years ago
Try applying the attached patch to correctly filter on extended characters.

I'm not sure what you mean about the square brackets. Do you have an event with 
a name like "my [test] event"? You'll need to escape any set of brackets given 
to the -n or --title option if you have regex = True in your config file (which 
is the default). For example,

calendar list -n "my \[test\] event"

Original comment by tom.h.mi...@gmail.com on 21 Sep 2010 at 11:00

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r423.

Original comment by tom.h.mi...@gmail.com on 22 Sep 2010 at 7:55

GoogleCodeExporter commented 9 years ago
I went ahead and made the assumption that this solves the problem. If you're 
still having problems, let me know through this issue and I'll re-open it. 
Thanks!

Original comment by tom.h.mi...@gmail.com on 22 Sep 2010 at 7:56