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.
Summary: | I18N - diff window left side not show multibyte ok when project encoding is not that of users locale | ||
---|---|---|---|
Product: | versioncontrol | Reporter: | Ken Frank <kfrank> |
Component: | Mercurial | Assignee: | issues@versioncontrol <issues> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | I18N |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
image
proposed patch |
Description
Ken Frank
2008-01-30 19:39:53 UTC
Created attachment 55788 [details]
image
feq api was not used. Can you point us documentation for feq api and code which uses it in NetBeans? developers in netbeans team of this project or other nb developers in netbeans team can point to dev level information on it. ken.frank@sun.com feq - FileEncodingQuery just search for it in other vcs (cvs, svn, lh) modules (Note from Tomas Stupka) The only use of FileEncodingQuery I can find for cvs or subversion is in ResolveConflictsExecutor.java. Accordingly, I would also expect to see this problem in a subversion or cvs controlled project. Is that so? I don't see that problem using cvs doing similar steps. ken.frank@sun.com not seen using subversion on windows also. ken.frank@sun.com I need to reinstall with ja locale to determine whether the problem is with mercurial or the plugin. I will revisit this next week. I have installed ja locale on a Nevada 80 system. Where will I find pseudo-localized netbeans? Can you give me exact instructions on how to reproduce? For instance, I do not know how to specify a Japanese character or change project encoding. Is this the same problem as described in http://www.netbeans.org/issues/show_bug.cgi?id=85257? seems to be. the root of the problem in svn was that the files shown in the diffviews left side was located somewhere on the disk (/tmp/...) and wasn't belonging to the project. Now, the encoding for the right side editor pane is given by the project the file comes from while the left sides editor pane chooses a different encoding (whatever it may be:)). In case this also applies to mercurial then use the o.n.m.versioning.Utils.associateEncoding() api to set the same encoding for the left sides file as the project locale file has. the same for the diff bar embedded in the editor window. Created attachment 56587 [details]
proposed patch
changeset: 67264:0bca79e3abb7 tag: tip user: padraigob@netbeans.org date: Wed Feb 13 11:10:40 2008 +0000 files: mercurial/src/org/netbeans/modules/mercurial/ui/diff/DiffStreamSource.java description: 126322: Fix encoding for non-project file it might be same as that issue, but don't know for sure since don't know details of code changes or infrastructure on that issue. ken.frank@sun.com verified using 0304 build on solaris, using both utf-8 and euc-jp project encodings. ken.frank@sun.com |