I haven't checked it byte by byte, but I have tested on Windows 11 with UTF-8 encoding enabled in system locale settings.
On Thursday, July 10, 2025 at 5:43:46 PM UTC+2 Peter Schow wrote: > On Thu, Jul 10, 2025 at 8:48 AM Oleksii Hladyshko <[email protected]> > wrote: > > It functions perfectly on Windows. However, for POSIX systems (macOS and > Linux), there is a slight discrepancy between the calculated size and the > actual size of the serialized message. My calculations show that it is 2 > bytes smaller for both the database and the bundle. When I comment out the > code that sets those fields, the size is accurate. > > > > What causes the difference in serialized sizes between Windows and > POSIX? Could the methods I use to calculate the sizes also differ? > > I'm wondering if the differences are being caused by the default UTF-16 > character encoding on Windows vs. UTF-8 on Linux. > > Have you inspected the contents of the serialized message, byte by byte? > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/grpc-io/63e0451b-afe1-44e8-a17c-42c5eded2633n%40googlegroups.com.
