This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Replace std::isprint/isspace with llvm's locale-independent version
ClosedPublic

Authored by teemperor on Jun 19 2020, 3:51 AM.

Details

Summary

LLVM is using its own isPrint/isSpace implementation that doesn't change depending on the current locale. LLDB should do the same
to prevent that internal logic changes depending on the set locale.

Diff Detail

Event Timeline

totally_not_teemperor edited the summary of this revision. (Show Details)
totally_not_teemperor added reviewers: labath, mib.
totally_not_teemperor retitled this revision from [lldb] Replace std::isprint with llvm::isPrint to [lldb] Replace std::isprint/isspace with llvm's locale-independent version.
totally_not_teemperor edited the summary of this revision. (Show Details)
  • Also replace isspace
teemperor commandeered this revision.Jun 19 2020, 5:05 AM
teemperor added a reviewer: totally_not_teemperor.
JDevlieghere accepted this revision.Jun 19 2020, 9:11 AM

Not sure I can trust @totally_not_teemperor but the change LGTM

This revision is now accepted and ready to land.Jun 19 2020, 9:11 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 19 2020, 10:21 AM