Bug 37034

Summary: Fixed maximum character length in EUC
Product: Base System Reporter: winard <winard>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-euc none

Description winard 2002-04-13 09:40:01 UTC
The EUC rune-related functions use a fixed maximum character length,
which forbids longer multibyte characters.

Fix: Apply the following patch:
How-To-Repeat: Create a EUC encoding LC_CTYPE locale file which has codeset(s)
longer than three bytes, use mbtowc(3) to convert such multibyte
words.
Comment 1 Yen-Ming Lee freebsd_committer freebsd_triage 2005-04-10 13:45:59 UTC
State Changed
From-To: open->closed

Fixed by asmodai@ in rev 1.8 
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/locale/euc.c.diff?r1=1.7&r2=1.8&f=h 

and refined by ache@ in rev 1.10 
http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/locale/euc.c.diff?r1=1.9&r2=1.10&f=h