Fixed a bug in cl/600990001 -- we need to propagate the as_utf8 parameter that was passed.

PiperOrigin-RevId: 601109776
This commit is contained in:
Joshua Haberman 2024-01-24 07:06:35 -08:00 committed by Copybara-Service
parent 3d7e4d6347
commit af339fad1e

View file

@ -231,7 +231,7 @@ def PrintMessage(message,
the field is a proto message.
"""
printer = _Printer(
out=out, indent=indent, as_utf8=_as_utf8_default,
out=out, indent=indent, as_utf8=as_utf8,
as_one_line=as_one_line,
use_short_repeated_primitives=use_short_repeated_primitives,
pointy_brackets=pointy_brackets,