Bug 2625 - Added support for MIK encoding
Summary: Added support for MIK encoding
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: localedata (show other bugs)
Version: unspecified
: P2 enhancement
Target Milestone: ---
Assignee: GNU C Library Locale Maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-01 05:54 UTC by Alexander Shopov
Modified: 2019-04-10 08:45 UTC (History)
1 user (show)

See Also:
Host: i386-linux-elf
Target: i386-linux-elf
Build: i386-linux-elf
Last reconfirmed:
fweimer: security-


Attachments
MIK codepage support (5.42 KB, patch)
2006-05-01 05:58 UTC, Alexander Shopov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Shopov 2006-05-01 05:54:03 UTC
Added is a patch for MIK encoding.
patch is produced with diff -Naur
patch is against CVS HEAD about 2006-04-27 04:16:31 

Summary of changes:

* iconvdata/testdata/MIK: added testfile
* iconvdata/testdata/MIK..UTF8: added testfile
* iconvdata/Makefile:
       ** modules: added MIK
       ** distribute: added mik.c
       ** gen-8bit-gap-modules: added mik
* iconvdata/TESTS: added MIK
* iconvdata/gconv-modules: added MIK
* iconvdata/mik.c: new file, no holes, uses 8bit-gap.c
* iconvdata/tst-tables.sh: added MIK
* localedata/charmaps/MIK: added the MIK charmap
Comment 1 Alexander Shopov 2006-05-01 05:58:16 UTC
Created attachment 992 [details]
MIK codepage support

* iconvdata/testdata/MIK: added testfile
* iconvdata/testdata/MIK..UTF8: added testfile
* iconvdata/Makefile:
       ** modules: added MIK
       ** distribute: added mik.c
       ** gen-8bit-gap-modules: added mik
* iconvdata/TESTS: added MIK
* iconvdata/gconv-modules: added MIK
* iconvdata/mik.c: new file, no holes, uses 8bit-gap.c
* iconvdata/tst-tables.sh: added MIK
* localedata/charmaps/MIK: added the MIK charmap
Comment 2 Ulrich Drepper 2006-05-01 06:10:26 UTC
Where is this used?  Point me to some references.
Comment 3 Ulrich Drepper 2006-05-01 14:19:26 UTC
I found references myself.  The changes look OK and I applied them.
Comment 4 Alexander Shopov 2006-05-02 08:38:04 UTC
I am adding references here for anyone to be on the clear about MIK.
MIK is a Bulgarian encoding that was used in the 16-bit Bulgarian produced
Pravetz computers.
The computers were Intel x86 (8086) compatible.
The MIK is based on IBM437 codepage, and some of the box drawing characters were
replaced by cyrillic letters.
The codepage gained a lot of popularity in Bulgaria throughout the years -
legacy DOS systems, etc. Now there are a lot of banking, transport, booking,
accounting software packages using it.
So today we have to upgrade those systems to something more modern. Libc support
of MIK will allow for every application to operate on MIK encoded data. This
also includes the appplications based on GNU classpath.

References for the the MIK codepage itself:
1. http://en.wikipedia.org/wiki/MIK_Code_page
2. http://czyborra.com/charsets/cyrillic.html
3. http://debian.fmi.uni-sofia.bg/pipermail/ls-dict/2006-April/002760.html
There are 4 different characters in [1] and [2]. GNU libc support is based on
[1]! The reason is that MIK is based on IBM437. [3] is the translators'
discussion on these problems. (the resource is in Bulgarian).