Package: libenca0
Version: 1.9-6
Severity: normal
When I'm trying to detect character set of buffer, which has KOI8-R
charset, with ENCA analyser for Belarussion language, I've got this error:
filters.c:373: enca_language_hook_ncs: Assertion `k < ncharsets' failed.
Aborted
I think this is not normal. I suggest ENCA should return ENCA_CS_UNKNOWN
instead of terminating executing of my program.
This bug can be reproduced by enca binary package by typing `enca -L be
file.txt` where file.txt contents english and russian characters in
KOI8-R character set. File I've used to reproduce this bug can be found
in attachment.
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.28.5-vanilla (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libenca0 depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
libenca0 recommends no packages.
libenca0 suggests no packages.
--
With best regards, Sergey I. Sharybin
Hello, World!
ðÒÉ×ÅÔ, íÉÒ!