Hi,
is there an option to have TextFormat::Print use hexadecimal instead of 
octal for "bytes"?
What I would like to see out of TextFormat::Print, for a *bytes* field (not 
*string*), is something like:
*bcdnumber: "\x12\x34\x5F"*

instead of what is currently shown:
*bcdnumber: "\0224_"
*
Not something essential, but useful for me (and others too, I know for 
sure).

If you look in google/protobuf/stubs/strutil.cc, around line 455 you will 
find:
use_hex ? "\\x%02x" : "\\%03o"
which is exactly what I need to enable.

Thanks.
Emanuele

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/protobuf/-/aL_5aPoPD3QJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to