#39: language-c-0.4.2.0 compatibility
--------------------+-------------------------------------------------------
Reporter: guest | Type: defect
Status: new | Priority: normal
Milestone: | Component: general
Version: 0.16.2 | Keywords:
--------------------+-------------------------------------------------------
Hi,
for Debian, I patched c2hs to build against the language-c in the latest
version. The patch is purely type-driven, and not checked against possible
changes in the semantics of language-c.
Thanks,
Joachim
--
Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/39>
c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/>
C->Haskell, An Interface Generator for Haskell
#42: Nonstandard binary installation directory
--------------------+-------------------------------------------------------
Reporter: guest | Type: defect
Status: new | Priority: normal
Milestone: | Component: general
Version: 0.16.0 | Keywords:
--------------------+-------------------------------------------------------
c2hs doesn't install in the proper directory ({{{ ~/.cabal/bin }}}).
Instead, it installs in {{{
/Users/andrew/Library/Haskell/ghc-7.0.3/lib/c2hs-0.16.3/bin }}}. This
creates problems with subsequent packages which depend on c2hs's
installation and inclusion in {{{ PATH }}}.
--
Ticket URL: <http://hackage.haskell.org/trac/c2hs/ticket/42>
c2hs <http://www.cse.unsw.edu.au/~chak/haskell/c2hs/>
C->Haskell, An Interface Generator for Haskell
#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