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 167425 - Cannot commit with non-ASCII commit message
Summary: Cannot commit with non-ASCII commit message
Status: RESOLVED WONTFIX
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
: 168195 174558 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-21 15:07 UTC by dredzik
Modified: 2012-05-23 12:52 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 dredzik 2009-06-21 15:07:27 UTC
NetBeans: 6.7 RC2 (Build 200906050001)
Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137
System: Mac OS X 10.5.7 i386; UTF-8; pl_PL (nb)
Subversion: 1.6.2 (r37639)

When I try to commit something and I write a commit message with non-ASCII characters ("Zażółć gęślą jaźń" for example) I get a message:

#v+
Commit failed (details follow):
Error normalizing log message to internal format
Valid UTF-8 data
(hex: 5a 61)
followed by invalid UTF-8 sequence
(hex: fd 97 b8 8d)
#v-

A little digging and I've found that 5a 61 fd 97 b8 8d is in fact "Zażółć" encoded in http://unicode.org/Public/MAPPINGS/VENDORS/APPLE/CENTEURO.TXT 
encoding. It is default file encoding for Java in Mac OS X. So I tried to change it to UTF-8. I edited /Applications/NetBeans/NetBeans\ 6.7\ 
RC2.app/Contents/MacOS/netbeans and added -J-Dfile.encoding=UTF-8 to the two "eval launchNBExec" parts.

It fixed the problem. Now I can commit with non-ASCII commit messages.

I think it would fix this bug also: http://www.netbeans.org/issues/show_bug.cgi?id=122284
Comment 1 Ondrej Vrabec 2009-07-06 21:22:50 UTC
*** Issue 168195 has been marked as a duplicate of this issue. ***
Comment 2 torwart 2009-07-06 23:53:31 UTC
@dredzik: I have test your fix (with edit Contents/MacOS/netbeans), but it hasn't an effect in My System.
I become always still the same error message.
Comment 3 dredzik 2009-07-08 17:18:34 UTC
Thats strange. I've just tested on clean final 6.7 release and works for me. 

After removing ~/.netbeans and installing NB:
- installed PHP and JavaScript Debbuger plugins,
- edited NetBeans/Resources/MacOS/netbeans,
- changed SVN location in preferences -> misc -> versioning -> subversion to point to /opt/local/bin/svn (my 1.6.2 version of SVN - but I tested it earlier 
with the default Mac OS X version and it worked just fine)
- restarted,
- opened PHP project
- commited into SVN without any problems with non-ASCII chars

Try to install MacPorts and install svn from there, maybe I missed sth about it.
Comment 4 torwart 2009-07-08 23:52:15 UTC
@dredzik: I have do this - and it does - Thanks! My Problem was situated probably by my old Version of
Subversion-Client. But I think, it would be better, if that problem can be solve in a future version.
Comment 5 Ondrej Vrabec 2009-10-14 15:03:17 UTC
*** Issue 174558 has been marked as a duplicate of this issue. ***
Comment 6 Tomas Stupka 2010-09-28 14:28:13 UTC
please use an actual nb and svn version.
Comment 7 akozlov75 2012-05-23 12:43:01 UTC
For netbeans this method do not work!
Try this add this string: -J-Dfile.encoding=UTF-8
To file: /Applications/NetBeans/NetBeans\ 7.1.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
In line: netbeans_default_options=...
Comment 8 akozlov75 2012-05-23 12:52:51 UTC
sorry forget to say...
add line log-encoding = UTF-8
to file .subversion/config

In my case works fine