title: Collator not working on my mac
body: <p>I am trying to write some code that uses the Collator functionality in java to compare strings but my computer does not seem to be functioning properly. Here is the code:</p>
  
  <pre><code>Collator myCollator = Collator.getInstance(Locale.FRANCE);
  System.out.println( "ças vs zed: " + myCollator.compare("ças", "zed"));
  System.out.println( "cas vs zed: " + myCollator.compare("cas", "zed"));
  </code></pre>
  
  <p>Here is what happens when I run this code on my computer:</p>
  
  <pre><code>ças vs zed: 1 
  cas vs zed: -1
  </code></pre>
  
  <p>But when I run it on ideone.com I get the answer I want:</p>
  
  <pre><code>ças vs zed: -1
  cas vs zed: -1
  </code></pre>
  
  <p>Here is the java version I am running on my computer (a Mac running OS X 10.6.8):</p>
  
  <pre><code>java version "1.6.0_29"
  Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-10M3527)
  Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
  </code></pre>
  
  <p>Why is my computer giving a different (wrong) result, and how can I fix it?</p>