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 168307

Summary: I18N : Japanese strings become ??? on navigator window for RSpec expect strings
Product: ruby Reporter: Masaki Katakai <masaki>
Component: TestingAssignee: Erno Mononen <emononen>
Status: VERIFIED FIXED    
Severity: blocker CC: jf4jbug
Priority: P2 Keywords: I18N
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: sample project
screenshot : ???? on navigator window

Description Masaki Katakai 2009-07-09 00:03:29 UTC
NetBeans IDE 6.7 (Build 200906241340)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137
Mac OS X 10.5.7; UTF8; ja_JP (nb)

If expect strings are Japanese in RSpec file, it will be garbled
(become ?) on navigator window.

  it "日本語日本語日本語" do
    # TODO
  end

I'll attach the screenshot and sample project.
Comment 1 Masaki Katakai 2009-07-09 00:05:58 UTC
Created attachment 84515 [details]
sample project
Comment 2 Masaki Katakai 2009-07-09 00:06:43 UTC
Created attachment 84516 [details]
screenshot : ???? on navigator window
Comment 3 Masaki Katakai 2009-07-09 00:09:36 UTC
I'm using the default setting - JRuby as Ruby runtime and project encoding is set to UTF-8 (default).
Comment 4 Erno Mononen 2009-07-09 06:08:43 UTC
Thanks for the sample project, I'll take a look at this.
Comment 5 Erno Mononen 2009-07-10 13:44:13 UTC
I'm trying to reproduce this, but can't even make Japanese chars display correctly in the editor (in any kind of file); 
I must be missing something. I'm running:

Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02
System: Linux version 2.6.27-14-generic running on amd64; UTF-8; ja_JP (nb)

I've also installed some Japanese fonts, but no dice. Any tips?
Comment 6 Masaki Katakai 2009-07-10 14:22:12 UTC
Hi Erno,

Do you see squares?

If you know the location of Japanese fonts, please make a symlink as fallbak from it.

% ls -l /usr/share/fonts/truetype/vlgothic <jdk_home>/jre/lib/fonts/fallback

or just copy (or make symlink) a Japanese truetype font to <jdk_home>/jre/lib/fonts/fallback

% mkdir <jdk_home>/jre/lib/fonts/fallback
% cp /usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf <jdk_home>/jre/lib/fonts/fallback


Comment 7 Erno Mononen 2009-07-14 11:32:52 UTC
I see squares indeed, thanks a lot for the instructions!
Comment 8 Erno Mononen 2009-07-14 13:29:54 UTC
Fixed in fec698482db8 (will push a bit later).
Comment 9 Quality Engineering 2009-07-15 07:24:18 UTC
Integrated into 'main-golden', will be available in build *200907150249* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/fec698482db8
User: Erno Mononen <emononen@netbeans.org>
Log: #168307: I18N : Japanese strings become ??? on navigator window for RSpec expect strings
Comment 10 Masaki Katakai 2009-07-16 06:23:39 UTC
Thank you! I verified it works on build 200907150249. Great!