Coder Social home page Coder Social logo

neongreen / charsetdetect-ae Goto Github PK

View Code? Open in Web Editor NEW

This project forked from batterseapower/charsetdetect

7.0 7.0 6.0 224 KB

Character set detection for Haskell

License: Other

Haskell 0.82% Shell 0.56% C 23.39% CMake 0.16% C++ 74.62% Makefile 0.45%

charsetdetect-ae's People

Contributors

batterseapower avatar domenkozar avatar ryanglscott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

charsetdetect-ae's Issues

Build failure on CentOS with ghc 7.6.3

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

Convert bytestring to text

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.

AArch64 (ARM 64 bits) is not supported

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?

unknown processor architecture

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.