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 270315 - "Source" view of .properties files should display Unicode escapes as is
Summary: "Source" view of .properties files should display Unicode escapes as is
Status: NEW
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: Dev
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-06 11:23 UTC by terje7601
Modified: 2017-04-06 11:32 UTC (History)
0 users

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 terje7601 2017-04-06 11:23:24 UTC
When opening a .properties file (by double-clicking it), Unicode escapes are displayed as the actual character. This should not be the case: the editor view is named "Source", so NetBeans should just show the file content as is.
Showing the actual characters instead is useful, but it should be a separate editor view. Or at least notify the user that the file contains Unicode escapes, and whether or not NetBeans should display the actual characters instead.

Product Version: NetBeans IDE Dev (Build 201703100002)
Updates: Updates available
Java: 1.8.0_121; OpenJDK 64-Bit Server VM 25.121-b14
Runtime: OpenJDK Runtime Environment 1.8.0_121-b14
System: Linux version 4.10.8-200.fc25.x86_64 running on amd64; UTF-8; en_US (nb)
Comment 1 terje7601 2017-04-06 11:32:05 UTC
Another problem with this (and the reason why I believe it's a defect and not an enhancement): if the case of Unicode escapes is changed (due to bug 239513), it's impossible to make these changes visible in any Diff view, because the Diff view compares the actual characters.

So NetBeans' svn diff tells me "this file has only 1 change", which leads me to believe it's OK to commit the file to version control. While in reality there's a lot of changes, and it's not OK to commit at all.