Patch: codec for the winsami2 charset?

Børre Gaup boerre at subdimension.com
Wed Sep 18 21:25:25 BST 2002


My name is Børre Gaup. I participate in a project called skolelinux [1],
which is developing a (Debian based) Linux distribution for Norwegian schools. 
We are also working on translations to Norwegian (both bokmål and nynorsk) 
and Northern Sámi. This distribution uses KDE as the desktop environment.

The northern sámi language uses some characters that are not found in
iso8859-1, e.g. ŋ (eng), đ (dstroke) and so on ...

The winsami-2 character set is a de facto standard[2] used on win9x
platforms, and I think we need support for it so Northern Sámi users can
write e.g. e-mails to users on win9x platforms.

This is an 8-bit solution, implemented for the win9x/me platform.

>From a unix platform I can send Northern Sámi e-mail coded as iso8859-4/10 or
utf-8, and the users on a win9x/me platform are able to read it, but they can
only write Northern Sámi using the winsami2 standard. That's why we, in my
opinion, need support for this charset.

I fetched qt-copy and kdelibs and family from cvs, edited
qt-copy/src/codec/qtextcodec.cpp and kdelibs/kdecore/kcharsets.cpp, compiled
it and it worked out of the box, e.g. kmail gives this when sending winsami2
coded mail:
Content-Type: text/plain;
  charset="winsami2"

I sent in the patch for for qtextcodec.cpp, and it got accepted:
> Hi, 
>  
> thanks for your patch. I have added it to Qt-3.0.6 and 3.1. 
>  
> Best regards, 
> Lars 
>  
> -- 
> Lars Knoll, Software Engineer 
> Trolltech AS, Waldemar Thranes gt. 98, N-0175 Oslo, Norway 

I have attached the patches with this mail, and I hope you accept them and 
incorporate them in KDE.

[1]http://developer.skolelinux.no/index.html.en
[2]http://www.hum.uit.no/a/trond/ws2t.html


-- 
Børre Gaup, Kiruna, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtextcodec.cpp.diff
Type: text/x-diff
Size: 1336 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020918/7afe2342/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcharsets.cpp.diff
Type: text/x-diff
Size: 1197 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020918/7afe2342/attachment-0001.diff>


More information about the kde-core-devel mailing list