Uchardet-0.0.8

Introduction to Uchardet

The Uchardet package contains an encoding detector library which takes a sequence of bytes in an unknown character encoding and attempts to determine the encoding of the text.

This package is known to build and work properly using an LFS 12.4 platform.

Package Information

Uchardet Dependencies

Required

CMake-4.1.3

Installation of Uchardet

Prepare Uchardet by running the following commands:

cmake -B build -W no-dev                  \
      -D CMAKE_INSTALL_PREFIX=/usr        \
      -D BUILD_STATIC=OFF                 \
      -D CMAKE_POLICY_VERSION_MINIMUM=3.5

To Build the package, issue:

cmake --build build

To test the results, issue:

cd build
make test
cd ../

Now Install the package, as the root user:

cmake --install build

Command Explanations

-D BUILD_STATIC=OFF: This switch disables building the static version of the library.

-D CMAKE_POLICY_VERSION_MINIMUM=3.5: This switch allows building this package with cmake-4.0 or newer.

Contents

Installed Programs: uchardet
Installed Libraries: libuchardet.so
Installed Directories: /usr/include/uchardet

Short Descriptions

uchardet

detects what character set is used inside of a file

libuchardet.so

provides an API for detecting the encoding of text in a file