Skip to content

Commit

Permalink
ensure we specify Locale to use
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Feb 16, 2022
1 parent 41cea95 commit 4231a8f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void handleStreamEventExpandedNotifications(String status, String target
try {
String[] networkStatus = mService.conn.getInfo("ns/id/" + node.fingerPrint).split(" ");
node.ipAddress = networkStatus[6];
String countryCode = mService.conn.getInfo("ip-to-country/" + node.ipAddress).toUpperCase();
String countryCode = mService.conn.getInfo("ip-to-country/" + node.ipAddress).toUpperCase(Locale.ENGLISH);
if (!countryCode.equals(TOR_CONTROLLER_COUNTRY_CODE_UNKNOWN)) {
String emoji = Utils.convertCountryCodeToFlagEmoji(countryCode);
String countryName = new Locale("", countryCode).getDisplayName();
Expand Down

0 comments on commit 4231a8f

Please sign in to comment.