Bug 61624 - inputting multibytes characters is broken
Summary: inputting multibytes characters is broken
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gnumeric
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Havoc Pennington
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 61901
TreeView+ depends on / blocked
 
Reported: 2002-03-22 09:24 UTC by Akira TAGOH
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-03-27 05:14:45 UTC
Embargoed:


Attachments (Terms of Use)
screenshot (77.83 KB, image/jpeg)
2002-03-22 09:25 UTC, Akira TAGOH
no flags Details
fix patch (654 bytes, patch)
2002-03-22 09:26 UTC, Akira TAGOH
no flags Details | Diff
Oops... please use this instead of. (723 bytes, patch)
2002-03-24 15:02 UTC, Akira TAGOH
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.