This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 14545 - I18N - abbreviation with multibyte name does not expand in editor
Summary: I18N - abbreviation with multibyte name does not expand in editor
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Sun Windows ME/2000
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2001-08-17 16:56 UTC by Ken Frank
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff in -c format (1.59 KB, patch)
2003-01-28 16:00 UTC, Jan Kovar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2001-08-17 16:56:20 UTC
Create an abbreviation with multibyte name and
english values. Type in abbreviation in editor and
hit space (after mulibyte input has been committed and
im input mode is off) - abbreviation is not placed into
editor.
-----------------------
In the case of using an abbreviation with ascii name
but multibyte value, most of the time it seems to work
but not always; I'll look into this more to see if a real
issue.
Comment 1 gautham mudra 2001-08-28 20:43:41 UTC
This Abbreviation does not work only in Windows98 and Windows2000.It
works fine in solaris8 and Linux6.2.
Comment 2 katakai 2001-10-04 10:17:35 UTC
I'm also seeing this problem on NT and MSIME.

It seems that just after committing japanese character,
a fullsize space is entered by space key. Ascii space
will insert abbreviation but IDE gets fullsize space.
The following scenario can work even on NT,

1. commit japanese
2. turn IME off
3. space

but this does not work.

1. commit japanese
2. space

I think this is a spec of IDE because IDE does not
register fullsize space as inputting abbreviation.
Comment 3 Jan Chalupa 2001-11-27 12:26:56 UTC
Target milestone -> 3.3.1.
Comment 4 Marek Grummich 2002-07-22 09:47:57 UTC
Set target milestone to TBD
Comment 5 Marek Grummich 2002-07-22 09:51:28 UTC
Set target milestone to TBD
Comment 6 Jan Kovar 2003-01-28 15:59:50 UTC
I think I know the solution (at least for japanese Abb.).
The problem is connected with a fact that when entering 
space in japanese mode, the entered characted is not 
recognized as ' ' character. 
Solution is to change way how to recognize the space. When 
JDK isWhitespace() function is used the abbreviations 
works properly.

I was not sucessful with reproducing any problem with 
english abbreviations which contains japanese text.

I will attach the diff here and I would like to ask:
- Mila to verify/comment it and commit it to the maintrunk
- Ken to check the fix after its commited (please, also on 
on windows as im not able to find suitable windows system 
with installed japanese). 
- Ken to check whether this fix is sufficient and whether 
there is also any other relevant reproducible problem with 
abbreviations.
Comment 7 Jan Kovar 2003-01-28 16:00:43 UTC
Created attachment 8699 [details]
diff in -c format
Comment 8 Martin Roskanin 2003-01-29 16:34:46 UTC
fixed in [maintrunk]

Honza, thanks for the patch.
Comment 9 gautham mudra 2003-04-03 23:34:14 UTC
Verified on Sierra RC5a_Build with patches...
OS:win2k
Comment 10 Martin Roskanin 2003-05-23 12:52:28 UTC
fixed in [prj40_prototype] also
Comment 11 gautham mudra 2003-08-15 18:25:29 UTC
verified fix on sierra update1 with patch 113638-4.
Configuration:
Build:Sierra Update1 020923
JDK:1.4.0_03
Locale:ja_JP
OS:win2k