Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 61624

Summary: inputting multibytes characters is broken
Product: [Retired] Red Hat Linux Reporter: Akira TAGOH <tagoh>
Component: gnumericAssignee: Havoc Pennington <hp>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: eng-asia-list
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-03-27 05:14:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 61901    
Attachments:
Description Flags
screenshot
none
fix patch
none
Oops... please use this instead of. none

Description Akira TAGOH 2002-03-22 09:24:37 UTC
From Bugzilla Helper:  
User-Agent: Mozilla/5.0 (compatible; Konqueror/2.99 (3.0 rc3);  
Linux)  
  
Description of problem: 
current gnumeric is handling with 1char == 1byte. so that inputting  
the characters on cell is broken because multibytes character is 
also counted as 1byte. 
  
Version-Release number of selected component (if applicable):  
  
  
How reproducible:  
Always  
  
Steps to Reproduce:  
1.Choose Japanese font like 'Kochi Gothic'  
2.input Japanese characters via XIM on input box.  
3.  
   
  
Actual Results:  the characters only on cell is broken.  
  
Expected Results:  cell and input box should be shown similar.  
  
Additional info:

Comment 1 Akira TAGOH 2002-03-22 09:25:46 UTC
Created attachment 49624 [details]
screenshot

Comment 2 Akira TAGOH 2002-03-22 09:26:48 UTC
Created attachment 49625 [details]
fix patch

Comment 3 Akira TAGOH 2002-03-22 09:29:56 UTC
This problem is already reported to upstream. 
See also http://bugzilla.gnome.org/show_bug.cgi?id=67073 
 
This patch is included in that.

Comment 4 Havoc Pennington 2002-03-22 12:58:31 UTC
The patch leaks the return value of gtk_editable_get_chars()

Comment 5 Akira TAGOH 2002-03-24 15:02:38 UTC
Created attachment 49966 [details]
Oops... please use this instead of.

Comment 6 Havoc Pennington 2002-03-26 21:47:13 UTC
Jody says this patch (the second version) and Nakai's input method 
patch on bugzilla.gnome.org are probably safe, if you guys tested them
in both C/japanese/Latin-1 locales.

Comment 7 Havoc Pennington 2002-03-26 21:49:11 UTC
Jody also says that Gnumeric is NOT going to be usable in multibyte locales, 
even with these patches - bunches of other things will still be broken, 
though.

Comment 8 Nakai 2002-03-27 05:14:38 UTC
Gnumeric 1.0.x will be usable in CJK locale with this patch.
It will not as usable as it in English, but the patch will improve it so much.
And XIM update position patch will not break other single byte locale.
You and Jody don't know how XIM support is important for CJK users.
Imagine the sadness that you cannot input your mother language with your
keyboard. Oops, sad...

Comment 9 Havoc Pennington 2002-03-27 21:38:26 UTC
Patch applied, 1.0.5-2