title: How to enable iconv support in mingw's gcc?
body: <p>I'm trying to use mingw's gcc with -fexec-charset option to specify some encoding different than UTF-8 and I get the following error:</p>
  
  <pre><code>Z:\&gt;echo char foo[] = "\u00fc"; | g++ -S -xc++ -fexec-charset=latin1 -
  cc1plus.exe: error: no iconv implementation, cannot convert from UTF-8 to latin1
  </code></pre>
  
  <p>How can I check if mingw's gcc has support for iconv and how can I enable this support in case it's turned off?</p>
  
  <hr>
  
  <p>I found bug number <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2832453&amp;group_id=2435&amp;atid=102435" rel="nofollow">2832453</a> (filed by Alexandr Zamaraev) on mingw's bugtracker at sourceforge.net about <code>-finput-charset</code> and <code>-fexec-charset</code> options not working in 4.4.0 version of mingw (that's what I'm using). Alexandr also described this problem in <a href="http://thread.gmane.org/gmane.comp.gnu.mingw.user/30394" rel="nofollow">post</a> to MinGW-users mailing list. The bug was filed on 2009-08-05 and nothing has happend since then. I'm not sure if I'm observing this bug (I'm not even sure if it's a bug because nobody has confirmed this) or if there's something wrong with my setup.</p>