We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26b54cc commit 771177aCopy full SHA for 771177a
src/libcore/str.rs
@@ -1687,10 +1687,9 @@ mod tests {
1687
#[test]
1688
fn test_to_upper() {
1689
// char::to_upper, and hence str::to_upper
1690
- // are culturally insensitive: I'm not sure they
1691
- // really work for anything but English ASCII, but YMMV
1692
-
1693
- let unicode = "\u65e5\u672c";
+ // are culturally insensitive: they only work for ASCII
+ // (see Issue #1985)
+ let unicode = ""; //"\u65e5\u672c"; // uncomment once non-ASCII works
1694
let input = "abcDEF" + unicode + "xyz:.;";
1695
let expected = "ABCDEF" + unicode + "XYZ:.;";
1696
let actual = to_upper(input);
0 commit comments