title: Accept non ASCII characters
body: <p>Consider this program:</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(int argc, char* argv[]) {
     printf(&quot;%s\n&quot;, argv[1]);  
     return 0;
  }
  </code></pre>
  <p>I compile it like this:</p>
  <pre><code>x86_64-w64-mingw32-gcc -o alpha alpha.c
  </code></pre>
  <p>The problem is if I give it a non ASCII argument:</p>
  <pre><code>$ ./alpha róisín
  r�is�n
  </code></pre>
  <p>How can I write and/or compile this program such that it accepts non ASCII
  characters? To respond to <a href="https://stackoverflow.com/a/30832853">alk</a>: no, the program is printing wrongly. See
  this example:</p>
  <pre><code>$ echo Ω | od -t x1c
  0000000  ce  a9  0a
          316 251  \n
  0000003
  
  $ ./alpha Ω | od -t x1c
  0000000  4f  0d  0a
            O  \r  \n
  0000003
  </code></pre>