Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb64d430 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

If frameworks wants ASCII casing, it should explicity ask for it.

parent c67b2ed5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -6979,7 +6979,7 @@ public class Intent implements Parcelable, Cloneable {
            return null;
            return null;
        }
        }


        type = type.trim().toLowerCase(Locale.US);
        type = type.trim().toLowerCase(Locale.ROOT);


        final int semicolonIndex = type.indexOf(';');
        final int semicolonIndex = type.indexOf(';');
        if (semicolonIndex != -1) {
        if (semicolonIndex != -1) {
+1 −1
Original line number Original line Diff line number Diff line
@@ -1376,7 +1376,7 @@ public class DatabaseUtils {
        if (sql.length() < 3) {
        if (sql.length() < 3) {
            return STATEMENT_OTHER;
            return STATEMENT_OTHER;
        }
        }
        String prefixSql = sql.substring(0, 3).toUpperCase(Locale.US);
        String prefixSql = sql.substring(0, 3).toUpperCase(Locale.ROOT);
        if (prefixSql.equals("SEL")) {
        if (prefixSql.equals("SEL")) {
            return STATEMENT_SELECT;
            return STATEMENT_SELECT;
        } else if (prefixSql.equals("INS") ||
        } else if (prefixSql.equals("INS") ||
+2 −1
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
package android.net;
package android.net;


import java.util.HashMap;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import java.util.Map;
import java.util.Set;
import java.util.Set;


@@ -84,7 +85,7 @@ public class MailTo {
                }
                }
                // insert the headers with the name in lowercase so that
                // insert the headers with the name in lowercase so that
                // we can easily find common headers
                // we can easily find common headers
                m.mHeaders.put(Uri.decode(nameval[0]).toLowerCase(), 
                m.mHeaders.put(Uri.decode(nameval[0]).toLowerCase(Locale.ROOT),
                        nameval.length > 1 ? Uri.decode(nameval[1]) : null);
                        nameval.length > 1 ? Uri.decode(nameval[1]) : null);
            }
            }
        }
        }
+2 −1
Original line number Original line Diff line number Diff line
@@ -17,6 +17,7 @@
package android.net;
package android.net;


import android.util.Log;
import android.util.Log;
import java.util.Locale;


/**
/**
 * Describes the buildtime configuration of a network.
 * Describes the buildtime configuration of a network.
@@ -63,7 +64,7 @@ public class NetworkConfig {
     */
     */
    public NetworkConfig(String init) {
    public NetworkConfig(String init) {
        String fragments[] = init.split(",");
        String fragments[] = init.split(",");
        name = fragments[0].trim().toLowerCase();
        name = fragments[0].trim().toLowerCase(Locale.ROOT);
        type = Integer.parseInt(fragments[1]);
        type = Integer.parseInt(fragments[1]);
        radio = Integer.parseInt(fragments[2]);
        radio = Integer.parseInt(fragments[2]);
        priority = Integer.parseInt(fragments[3]);
        priority = Integer.parseInt(fragments[3]);
+2 −1
Original line number Original line Diff line number Diff line
@@ -25,6 +25,7 @@ import android.util.Log;
import java.net.InetAddress;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.InetSocketAddress;
import java.net.UnknownHostException;
import java.net.UnknownHostException;
import java.util.Locale;


/**
/**
 * A container class for the http proxy info
 * A container class for the http proxy info
@@ -87,7 +88,7 @@ public class ProxyProperties implements Parcelable {
        if (mExclusionList == null) {
        if (mExclusionList == null) {
            mParsedExclusionList = new String[0];
            mParsedExclusionList = new String[0];
        } else {
        } else {
            String splitExclusionList[] = exclusionList.toLowerCase().split(",");
            String splitExclusionList[] = exclusionList.toLowerCase(Locale.ROOT).split(",");
            mParsedExclusionList = new String[splitExclusionList.length * 2];
            mParsedExclusionList = new String[splitExclusionList.length * 2];
            for (int i = 0; i < splitExclusionList.length; i++) {
            for (int i = 0; i < splitExclusionList.length; i++) {
                String s = splitExclusionList[i].trim();
                String s = splitExclusionList[i].trim();
Loading