#7: compile gtk2hs failed under locale zh_CN.utf8 ---------------------+------------------------------------------------------ Reporter: duncan | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: general | Version: 0.15.1 Keywords: | ---------------------+------------------------------------------------------
Comment(by guest): Replying to [ticket:7 duncan]: > Bug previously reported in the [http://hackage.haskell.org/trac/ghc/ticket/2384 ghc trac] > > ---- > > when compile gtk2hs under locale zh_CN.utf8, I got: > {{{ > c2hsLocal: Error in C header file. <built-in>:1: (column 0) [FATAL] > Lexical error! > The character '#' does not fit here. > }}} > when I compile it using locale POSIX, it succeed. I can confirm c2hs fails like this with Serbian locale (sr_RS.UTF8) as well. I suppose c2hs fails to read unicode characters. To fix that I added a small wrapper script arount c2hs (just "LANG=C c2hs-bin $*") and moved the real c2hs to c2hs-bin. Maybe that could be included in c2hs as a quick fix until this is properly handled? Best regards & keep up the good work Filip Brcic (brcha AT gna DOT org) -- Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/7#comment:1> c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/> C->Haskell, An Interface Generator for Haskell _______________________________________________ C2hs mailing list C2hs@haskell.org http://www.haskell.org/mailman/listinfo/c2hs