Skip to content

Commit

Permalink
Fix another locale issue with ctype.h in PHP generator.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 618321344
  • Loading branch information
mkruskal-google authored and copybara-github committed Mar 22, 2024
1 parent 86ff767 commit c56de47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/php/php_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 += '\\';
Expand Down

0 comments on commit c56de47

Please sign in to comment.