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 50646 - Setting locale does not help
Summary: Setting locale does not help
Status: RESOLVED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2004-10-20 10:54 UTC by Unknown
Modified: 2005-01-21 13:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2004-10-20 10:54:09 UTC
I am dane using netbeans but I cannot get it to
work with the specieal danish characters æ,ø and å.
Of course I am using a dk-layout keyboard.
I have tried starting netbeans with
--locale da:DK

but this does not help - the characters above
display as little rectangular red boxes.
Comment 1 Unknown 2004-10-21 17:55:28 UTC
I tried the same at work today, on a windows machine however. There it
worked fine.
When I got home and imported the project from work (containing æ,ø and
å characters) netbeans gave an error saying something about ASCII code.
How do I specify the I want to use UTF-8 or 16 or latin-1 as default
IDE characterset?
And why does it not do it automatically when I give it the --locale
flag on startup?
Comment 2 Unknown 2004-10-24 15:53:19 UTC
I have tried everything now, setting bash LANG variable and xorg
localisation variables but nothings helps. Why does the IDE not use
the --locale flag when it is set?
This is a very annoying bug.
Comment 3 Marian Petras 2004-10-26 08:11:08 UTC
Reassigned back to component "ide". Component "i18n" is not for
internationalization related issues but for issues regarding the I18N
module.
Comment 4 Marian Petras 2004-10-26 08:13:57 UTC
I can see two possible problems:
 - JRE not able to display the special Danish characters
 - operating system's filesystem using encoding which is not able
   to store the Danish characters
Comment 5 Marian Petras 2004-10-26 08:17:56 UTC
I tried to reproduce the bug and it all worked well.

My configuration:
  Fedora Core Linux (kernel 2.4.22)
            running on i686 (Intel Pentium M @ 1.6 GHz)
  JDK 1.4.2_04 & JDK 1.5.0 (tested on both)
  NetBeans 4.0 - custom build (sources updated at 25 Oct 2004, 8:00 AM
GMT)
Comment 7 Unknown 2004-10-26 15:42:20 UTC
Ok, I also tried it in Fedora Core Test 3, and it works.
However I do not understand why it did not work under Gentoo, where I
have written many programs in other applications using danish
characters. Well, who knows....
Comment 8 Milan Kubec 2004-12-13 08:53:44 UTC
P3 is more appropriate for this state of issue.
Comment 9 Marian Petras 2004-12-13 10:20:55 UTC
I guess the problem is similar to the one reported in issue #52176
("I18N - the Open File dialog does not show Chinese characters").

My last comment to issue #52176:

This is not a bug in NetBeans. The problem is that either some Chinese
fonts are missing on the computer or the JVM (Java Virtual Machine) is
not properly configured to use them.

Document "Java Internatinalization FAQ"
(http://java.sun.com/j2se/corejava/intl/reference/faqs/index.html)
should contain useful information on how to solve such problems. The
document also refers other documents - one for JDK 1.4.x
(http://java.sun.com/j2se/1.4.2/docs/guide/intl/font.html) and another
for JDK 1.5.x
(http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html).

Terms "logical fonts" and "physical fonts" are used in the above
documents. For your information, NetBeans uses "logical fonts".
Comment 10 Milan Kubec 2005-01-21 10:22:43 UTC
Marian, reporter, is this still an issue? Shouldn't it be resolved
somehow?
Comment 11 Marian Petras 2005-01-21 13:02:47 UTC
Further evaulation:

This is not the same issue as bug #52176, which is actually caused by
a JDK bug.

As displaying Danish characters work with Fedora Core but does not
work with Gentoo, I guess the cause of this problem is
misconfiguration of JDK fontsubsystem, i.e. that the JDK is not able
to use Linux fonts necessary for displaying Danish characters. The
solution is to modify the configuration so that JDK is able to find
all necessary fonts. The probable cause of the misconfiguration is
that Gentoo is not among supported Linux distributions and the default
configuration is not correct. (Fedora Core is not supported either but
it is very close to Red Hat which is supported.)

Links to more information:
  - for J2SE 1.4.x:
      - supported system configurations:
        http://java.sun.com/j2se/1.4.2/system-configurations.html
      - supported locales:
        http://java.sun.com/j2se/1.4.2/docs/guide/intl/locale.doc.html
      - internationalization:
        http://java.sun.com/j2se/1.4.2/docs/guide/intl/index.html
  - for J2SE 5.0:
      - supported system configurations:
        http://java.sun.com/j2se/1.5.0/system-configurations.html
      - supported locales:
        http://java.sun.com/j2se/1.5.0/docs/guide/intl/locale.doc.html
      - internationalization:
        http://java.sun.com/j2se/1.5.0/docs/guide/intl/index.html

(Note that Danish locale is not among fully supported locales either
for J2SE 1.4.x or for J2SE 5.0).

As this bug has been reproduced only on an unsupported system, I mark
this bug as INVALID.