Subject: Re: system crashes with the current build of May 11..
To: None <current-users@netbsd.org>
From: Dave Huang <khym@azeotrope.org>
List: current-users
Date: 05/28/2003 10:14:17
On Wed, May 28, 2003 at 07:53:52AM +0100, Aidan Kehoe wrote:
> A Korean character set, standardised in 1987, by the looks of things. No,
> wait, it's a 
> 
>   "Microsoft extension to EUC-KR. Also known as Unified Hangul Code,
>   UHC. Erroneously referred to as KS_C_5601-1987 by Microsoft products. Adds
>   8822 pre-combined Hangul syllables to EUC-KR."

Hmm, well if it's an extension to EUC-KR, it seems like GNU iconv (at
least the version in pkgsrc) isn't handling it correctly:

% echo hello | iconv -f euc-kr -t utf-8 | hexdump -C
00000000  68 65 6c 6c 6f 0a                                 |hello.|
00000006
% echo hello | iconv -f ks_c_5601-1987 -t utf-8 | hexdump -C
iconv: (stdin): cannot convert
00000000  e7 8c a5 e5 a3 b9                                 |......|
00000006
% echo hello | iconv -f us-ascii -t euc-kr
hello
% echo hello | iconv -f us-ascii -t ks_c_5601-1987
iconv: (stdin): cannot convert

>  > I'm using mutt and a probably old version at that. 
>  > 
>  > Other people can read it just fine. What's different?

If you change the character set to euc-kr (Control-E in Mutt), it
should display fine. Mozilla displays it too (it uses its own
character set conversion routines, instead of iconv).
-- 
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: khym@azeotrope.org |  they raise a paw / the bat, the cat /
FurryMUCK: Dahan         |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 27 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++