Re: [protobuf] C++ "bytes" fields access problem

2010-09-07 Thread Jason Hsueh
Can you provide a small reproduction of the problem? The generated code should not be doing any UTF8 validation. Is it possible you have a field defined elsewhere that has type 'string'? On Tue, Sep 7, 2010 at 4:40 AM, Mk wrote: > Hi. > I get funny problem. In proto file I have one "bytes" field

[protobuf] C++ "bytes" fields access problem

2010-09-07 Thread Mk
Hi. I get funny problem. In proto file I have one "bytes" field, it used for exchanging small binary array of data(~100 bytes). In java side it is ok, because of using ByteString as container. But on C++ consumer I get an error, when access to field: libprotobuf ERROR c:\projects \protobuf-2.3.0\sr