commit | cb64d430627b71221c588ef5f23599dd34a89ee9 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Aug 02 10:00:44 2013 -0700 |
committer | Elliott Hughes <enh@google.com> | Fri Aug 02 15:12:32 2013 -0700 |
tree | b224300586291ed638185af36a4a25fb6b27efa8 | |
parent | c67b2ed50226c4758d0fc1434d39f6add6a0a533 [diff] [blame] |
If frameworks wants ASCII casing, it should explicity ask for it. http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html Bug: https://code.google.com/p/android/issues/detail?id=58359 Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4
diff --git a/core/java/android/nfc/NdefRecord.java b/core/java/android/nfc/NdefRecord.java index 9b71f62..2b58818 100644 --- a/core/java/android/nfc/NdefRecord.java +++ b/core/java/android/nfc/NdefRecord.java
@@ -456,8 +456,8 @@ if (domain == null) throw new NullPointerException("domain is null"); if (type == null) throw new NullPointerException("type is null"); - domain = domain.trim().toLowerCase(Locale.US); - type = type.trim().toLowerCase(Locale.US); + domain = domain.trim().toLowerCase(Locale.ROOT); + type = type.trim().toLowerCase(Locale.ROOT); if (domain.length() == 0) throw new IllegalArgumentException("domain is empty"); if (type.length() == 0) throw new IllegalArgumentException("type is empty");