Change toLowerCase() to toLowerCase(Locale.ENGLISH)
[debian/openrocket] / core / src / net / sf / openrocket / gui / dialogs / motor / thrustcurve / ThrustCurveMotorSelectionPanel.java
index 646e402e03b2335931dac17860a81a63cf206a42..2600cff380ab809f33077da41f7e3bfc09080c7e 100644 (file)
@@ -14,6 +14,7 @@ import java.awt.event.MouseEvent;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
+import java.util.Locale;
 import java.util.prefs.Preferences;
 
 import javax.swing.BorderFactory;
@@ -333,7 +334,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
                                String[] split = text.split("\\s+");
                                ArrayList<String> list = new ArrayList<String>();
                                for (String s : split) {
-                                       s = s.trim().toLowerCase();
+                                       s = s.trim().toLowerCase(Locale.getDefault());
                                        if (s.length() > 0) {
                                                list.add(s);
                                        }
@@ -415,8 +416,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
                totalImpulseLabel = new JLabel();
                panel.add(totalImpulseLabel, "split");
                classificationLabel = new JLabel();
-               classificationLabel.setEnabled(false); // Gray
-               //              classificationLabel.setForeground(Color.GRAY);
+               classificationLabel.setEnabled(false); // Gray out
                panel.add(classificationLabel, "gapleft unrel, wrap");
                
                //// Avg. thrust:
@@ -944,7 +944,7 @@ public class ThrustCurveMotorSelectionPanel extends JPanel implements MotorSelec
                public boolean filterByString(ThrustCurveMotorSet m) {
                        main: for (String s : searchTerms) {
                                for (ThrustCurveMotorColumns col : ThrustCurveMotorColumns.values()) {
-                                       String str = col.getValue(m).toString().toLowerCase();
+                                       String str = col.getValue(m).toString().toLowerCase(Locale.getDefault());
                                        if (str.indexOf(s) >= 0)
                                                continue main;
                                }