News for hackers. Stuff that matters.
Re:Zig 0.9.0 by 10000truths on Monday December 20, 2021 @07:19PM (#29632240)
Protobuf string fields are expected to be in UTF-8. Although I'd expect a sane implementation of a protobuf decoder to throw an exception or otherwise indicate an error if it receives a malformed protobuf encoding.
Re:Zig 0.9.0 by haberman on Monday December 20, 2021 @08:08PM (#29632598)
Protobuf decoders are expected to validate UTF-8 strings for syntax="proto3" files, but not syntax="proto2". The behavior diverges mostly for historical reasons.

This is a validation pass only and it doesn't make any meaning of the code points, except to validate that none of them are surrogate code points (disallowed in UTF-8).