Petar, can you look into this?

2009/1/29 bart van deenen <bart.vandee...@gmail.com>

>
> Hi Kenton
>
> Here's the details:
>
> kubu:~$ protoc --version
> libprotoc 2.0.3
> kubu:~$ python -V
> Python 2.5.2
>
> This is a self-compiled protoc (because I had added the actionscript
> output generator). I actually find in CHANGES.txt for 2.0.2 that the
> "Strings now use the "unicode" type rather than the "str" type. I'd
> really like it if this was resolved, and I'm quite willing to help any
> way I can.
>
> Here's the testcase again.
>
> Bart.
>
> kubu:~/testcase$ ./test.py
> Traceback (most recent call last):
>  File "./test.py", line 18, in <module>
>    T.s=ustring #  FAILS
>  File "build/bdist.linux-i686/egg/google/protobuf/reflection.py",
> line 381, in setter
>  File "build/bdist.linux-i686/egg/google/protobuf/internal/
> type_checkers.py", line 59, in CheckValue
> TypeError: u'\u0634\u0627\u0647\u062f\u0629 \u0628\u062b' has type
> <type 'unicode'>, but expected one of: (<type 'str'>,)
>
>
> kubu:~/testcase$ cat
> test.py
> #!/usr/bin/
> python
> # -*- coding: utf-8 -*-
> from  example_pb2 import *
>
> # example.proto
> # message test {
> #       required string s=1;
> # }
>
> ustring = u"شاهدة بث"
> T = test()
> T.s=ustring #  FAILS
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to