neongreen / charsetdetect-ae Goto Github PK
View Code? Open in Web Editor NEWThis project forked from batterseapower/charsetdetect
Character set detection for Haskell
License: Other
This project forked from batterseapower/charsetdetect
Character set detection for Haskell
License: Other
Seems to a really common use case would be an autoConvert
function (or something like that) where
autoConvert :: ByteString -> Maybe Text
And it would detect the encoding and turn it into encoding-agnostic unicode text. Just a thought.
Resolving dependencies...
Configuring charsetdetect-ae-1.0.1...
Building charsetdetect-ae-1.0.1...
Preprocessing library charsetdetect-ae-1.0.1...
[1 of 1] Compiling Codec.Text.Detect ( Codec/Text/Detect.hs, dist/build/Codec/Text/Detect.o )
gcc: error: language c++ not recognized
gcc: error: language c++ not recognized
ghc -c: /usr/hs/ghc/7.6.3/bin/ghc failure (return code=1)
Failed to install charsetdetect-ae-1.0.1
cabal: Error: some packages failed to install:
charsetdetect-ae-1.0.1 failed during the building phase. The exception was:
ExitFailure 1
yi-0.11.1 depends on charsetdetect-ae-1.0.1 which failed to install.
yi-rope-0.7.0.0 depends on charsetdetect-ae-1.0.1 which failed to install.
$ gcc --version
gcc (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (GCC) 4.8.3
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
AArch64 is currently not supported, which leads to the following error:
[ 234s] In file included from libcharsetdetect/nspr-emu/prcpucfg.h:38:0: error:
[ 234s] 0,
[ 234s] from libcharsetdetect/nspr-emu/prtypes.h:58,
[ 234s] from libcharsetdetect/nscore.h:1,
[ 234s] from libcharsetdetect/charsetdetectPriv.h:6,
[ 234s] from libcharsetdetect/charsetdetect.cpp:3:
[ 236s]
[ 236s] libcharsetdetect/nspr-emu/prcpucfg_linux.h:650:2: error:
[ 236s] error: #error "Unknown CPU architecture"
[ 236s] #error "Unknown CPU architecture"
[ 236s] ^~~~~
Could you add support to it, please?
For 1.0.1, on a Win7 machine with Haskell Platform 7.10.2 64-bit, I had to include 'defined(__x86_64)' in libcharsetdetect/nspr-emu/prcpucfg_win.h.
Otherwise, build fails with "unknown processor architecture" (and a bunch of other stuff).
No such issue on 32-bit Haskell Platform.
See bottom of https://travis-ci.org/yi-editor/yi/jobs/38368244
Notably, newer GHC versions work fine here https://travis-ci.org/yi-editor/yi/builds/38368243
Perhaps something extra needs doing to accomodate for 7.6.3
Post here if you want to take over.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.