Hi John,<div><br></div><div>I just tried this out and if I copied all of the .dll files from the icu4c bin folder into the same folder as the test icu.exe it works as expected.  You can see what dlls are missing with the dependency walker program <a href="http://www.dependencywalker.com/">http://www.dependencywalker.com/</a>.  Perhaps with a mingw based build of icu4c (the one I used said it was built with Visual Studio 10) you could avoid this.</div>
<div><br></div><div>Ryan Yates<br><br><div class="gmail_quote">On Sat, Apr 27, 2013 at 4:56 PM, John MacFarlane <span dir="ltr">&lt;<a href="mailto:jgm@berkeley.edu" target="_blank">jgm@berkeley.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello café:<br>
<br>
I&#39;d very much like to get text-icu working on Windows, as then I could ship<br>
pandoc binaries that do proper unicode collation in bibliographies.  But I&#39;m<br>
having a devil of a time.  This may be due to my very limited Windows<br>
knowledge.  Any help would be appreciated, especially from someone who actually<br>
has text-icu working on Windows.<br>
<br>
I was able to cabal install text-icu without errors. I used --extra-lib-dirs<br>
and --extra-include-dirs to point to the lib and include directories in the<br>
32-bit binary distribution of icu4c.  I&#39;m using the latest Haskell Platform,<br>
2012.4.0.0 with ghc 7.4.2.<br>
<br>
I was also able to build the following simple program that uses text-icu, by<br>
doing ghc --make icu.hs:<br>
<br>
~~~<br>
-- icu.hs<br>
import Data.Text.ICU<br>
main = print $ Locale &quot;tr-TR&quot;<br>
~~~<br>
<br>
No errors or warnings in either of these steps. But when I try to run the<br>
compiled program, icu.exe, I get no output at all. I expected to get a line<br>
with &#39;Locale &quot;tr-TR&quot;&#39;, but instead I get nothing -- not even an error or warning.<br>
This remains the case if I try<br>
<br>
~~~<br>
main = do<br>
  print &quot;Start&quot;<br>
  print $ Locale &quot;tr-TR&quot;<br>
  print &quot;Done&quot;<br>
~~~<br>
<br>
&#39;echo $?&#39; yields False.<br>
<br>
Any ideas?<br>
<br>
John<br>
<br>
(I&#39;ve posted a similar question to StackOverflow [1], but it hasn&#39;t gotten<br>
an answer yet there, so I thought I&#39;d try here.)<br>
<br>
[1]: <a href="http://stackoverflow.com/questions/16127710/how-do-i-get-text-icu-working-on-windows" target="_blank">http://stackoverflow.com/questions/16127710/how-do-i-get-text-icu-working-on-windows</a>)<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>