Fix another locale issue with ctype.h in PHP generator.

PiperOrigin-RevId: 618321344
pull/16281/head
Mike Kruskal 8 months ago committed by Copybara-Service
parent 86ff76719e
commit c56de479a4
  1. 2
      src/google/protobuf/compiler/php/php_generator.cc

@ -512,7 +512,7 @@ std::string BinaryToPhpString(const std::string& src) {
if (src[i] == '\\' || src[i] == '$' || src[i] == '"') {
dest += '\\';
dest += src[i];
} else if (std::isprint(src[i])) {
} else if (absl::ascii_isprint(src[i])) {
dest += src[i];
} else {
dest += '\\';

Loading…
Cancel
Save