Re: [protobuf] Python windows adding erronous 0x0D bytes in message and then failing to parse

2013-12-11 Thread Andrew Beck
Argh, yes 0x0D is CR Thanks for the help :) On Thursday, December 12, 2013 3:50:23 AM UTC+8, Oliver wrote: > > Don't you want mode "wb"? Sounds like a classic case of opening a file in > text mode and getting LF -> CRLF translation happening on Windows. > > Oliver > > > On 11 December 2013 06:04

Re: [protobuf] Python windows adding erronous 0x0D bytes in message and then failing to parse

2013-12-11 Thread Oliver Jowett
Don't you want mode "wb"? Sounds like a classic case of opening a file in text mode and getting LF -> CRLF translation happening on Windows. Oliver On 11 December 2013 06:04, Andrew Beck wrote: > Using python 2.7.6 on darwin and windows, both using protoc 2.5.0 and libs > from 2.5.0, the pytho