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 225519 - Unable to work with files with accents in file/directory names while using JDK7.
Summary: Unable to work with files with accents in file/directory names while using JDK7.
Status: RESOLVED DUPLICATE of bug 225762
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.2.1
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL: http://bugs.sun.com/bugdatabase/view_...
Keywords:
: 225165 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-30 10:40 UTC by hadrabap
Modified: 2013-06-28 11:10 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 hadrabap 2013-01-30 10:40:07 UTC
When using JDK7 with NetBeans 7.2.1 it's impossible to work with filesystem objects which names contains accents. It's also impossible to create a file with such name (the file gets created but the file name is crafted).

How to reproduce:

1. Create some fancy objects somewhere:

$ cd ~/Desktop
$ mkdir ěščřž
$ touch ýáíéů
$ ls -la
total 56
drwxr-xr-x+ 12 petr  staff  -        408 30 led 11:21 .
drwxr-xr-x+ 57 petr  staff  -       1938 29 led 20:11 ..
-rw-r--r--@  1 petr  staff  -      21508 30 led 11:21 .DS_Store
drwxrwxrwx@  5 petr  staff  hidden   170 23 čvc  2011 .TXuZxZ9xKGM=
-rwxrwxrwx@  1 petr  staff  hidden     0  8 zář  2011 .localized
-rw-r--r--   1 petr  staff  -          0 30 led 11:21 ???.txt
drwxr-xr-x@  4 petr  staff  -        136 27 úno  2012 Backup
drwxr-xr-x   6 petr  staff  -        204 17 srp 15:43 CLITest
drwxr-xr-x   3 petr  staff  -        102 29 zář  2011 Hello
drwxr-xr-x@ 19 petr  staff  -        646 25 zář 12:35 Projects
drwxr-xr-x   2 petr  staff  -         68 30 led 11:19 ěščřž
-rw-r--r--   1 petr  staff  -          0 30 led 11:19 ýáíéů

2a. In NetBeans go to Favorites tab and link Desktop. Unfold Desktop => files are missing.
2b. Navigate to File -> Open FIle...; navigate to Desktop. Files are also missing.

---

This happens with JDK7 only; the JDK6 supplied by Apple works correctly. Other Java applications such as SQL Developer, JEdit and/or soapUI (on JDK7) are not affected.

I did some investigations and have discovered that internal java.io.File routines in JDK7 are returning accents in a different way (probably decomposed version) than JDK6. The only thing I don't understand is why the other applications are still working.

---

Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
System: Mac OS X version 10.7.5 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/petr/Library/Application Support/NetBeans/7.2.1
Cache directory: /Users/petr/Library/Caches/NetBeans/7.2.1
Comment 1 jmgimeno 2013-02-07 12:32:40 UTC
I have also experience this bug.
Comment 2 matimac91 2013-02-08 14:16:20 UTC
I do have the same problem
Comment 3 hadrabap 2013-02-09 18:52:04 UTC
Reproducible on daily build:


Product Version: NetBeans IDE Dev (Build 201302082300)
Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20
System: Mac OS X version 10.7.5 running on x86_64; US-ASCII; en_US (nb)
User directory: /Users/petr/Library/Application Support/NetBeans/dev
Cache directory: /Users/petr/Library/Caches/NetBeans/dev

---

Note: fresh user dir; no settings import
Comment 4 Tomas Zezula 2013-02-12 10:47:38 UTC
Caused by JDK issue http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8003228.

To workaround it:
export LC_CTYPE=UTF-8

for more details see http://netbeans.org/bugzilla/show_bug.cgi?id=225762#c8

*** This bug has been marked as a duplicate of bug 225762 ***
Comment 5 Ondrej Vrabec 2013-06-28 11:10:28 UTC
*** Bug 225165 has been marked as a duplicate of this bug. ***