lower-upper.patch 647 B

1234567891011121314151617
  1. diff --git a/python/google/protobuf/pyext/message.cc b/python/google/protobuf/pyext/message.cc
  2. index 3ff31e2..31d4003 100644
  3. --- a/python/google/protobuf/pyext/message.cc
  4. +++ b/python/google/protobuf/pyext/message.cc
  5. @@ -121,11 +121,7 @@ namespace message_meta {
  6. namespace {
  7. // Copied over from internal 'google/protobuf/stubs/strutil.h'.
  8. inline void LowerString(std::string* s) {
  9. - std::string::iterator end = s->end();
  10. - for (std::string::iterator i = s->begin(); i != end; ++i) {
  11. - // tolower() changes based on locale. We don't want this!
  12. - if ('A' <= *i && *i <= 'Z') *i += 'a' - 'A';
  13. - }
  14. + s->to_lower();
  15. }
  16. } // namespace