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.
I download latest NetBeans daily build and try subversion functionality. I can commit if commit message doesn't contain Japanese. But if I write Japanese commit message, following error has occured. OS: gentoo Linux encoding:ja_JP.UTF-8 org.tigris.subversion.svnclientadapter.commandline.CmdLineException: svn: Commit failed (details follow): svn: Can't convert string from native encoding to 'UTF-8': svn: ?\230?\151?\165?\230?\156?\172?\232?\170?\158?\227?\131?\134?\227?\130?\185?\227?\131?\136 org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.svnclientadapter.commandline.CmdLineException: svn: Commit failed (details follow): svn: Can't convert string from native encoding to 'UTF-8': svn: ?\230?\151?\165?\230?\156?\172?\232?\170?\158?\227?\131?\134?\227?\130?\185?\227?\131?\136 at org.tigris.subversion.svnclientadapter.SVNClientException.wrapException(SVNClientException.java:69) at org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.commit(CmdLineClientAdapter.java:533) at org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.commit(CmdLineClientAdapter.java:497) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.netbeans.modules.subversion.client.SvnClientInvocationHandler.handleRemotely(SvnClientInvocationHandler.java:329) at org.netbeans.modules.subversion.client.SvnClientInvocationHandler.invokeMethod(SvnClientInvocationHandler.java:302) [catch] at org.netbeans.modules.subversion.client.SvnClientInvocationHandler.invoke(SvnClientInvocationHandler.java:225) at $Proxy12.commit(Unknown Source) at org.netbeans.modules.subversion.ui.commit.CommitAction.performCommit(CommitAction.java:307) at org.netbeans.modules.subversion.ui.commit.CommitAction$1.perform(CommitAction.java:124) at org.netbeans.modules.subversion.client.SvnProgressSupport.performIntern(SvnProgressSupport.java:63) at org.netbeans.modules.subversion.client.SvnProgressSupport.run(SvnProgressSupport.java:56) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:519) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:951) Caused by: org.tigris.subversion.svnclientadapter.commandline.CmdLineException: svn: Commit failed (details follow): svn: Can't convert string from native encoding to 'UTF-8': svn: ?\230?\151?\165?\230?\156?\172?\232?\170?\158?\227?\131?\134?\227?\130?\185?\227?\131?\136 at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execString(CommandLine.java:165) at org.tigris.subversion.svnclientadapter.commandline.SvnCommandLine.checkin(SvnCommandLine.java:185) at org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.commit(CmdLineClientAdapter.java:510) ... 15 more Caused by: org.openide.ErrorManager$AnnException: msg at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:838) at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:842) at org.openide.ErrorManager$DelegatingErrorManager.annotate(ErrorManager.java:623) at org.openide.ErrorManager.annotate(ErrorManager.java:423) at org.netbeans.modules.subversion.client.ExceptionHandler.annotate(ExceptionHandler.java:159) at org.netbeans.modules.subversion.client.ExceptionHandler.annotate(ExceptionHandler.java:124) at org.netbeans.modules.subversion.ui.commit.CommitAction.performCommit(CommitAction.java:319) ... 5 more SVN command returned with the following error: org.tigris.subversion.svnclientadapter.commandline.CmdLineException: svn: Commit failed (details follow): svn: Can't convert string from native encoding to 'UTF-8': svn: ?\230?\151?\165?\230?\156?\172?\232?\170?\158?\227?\131?\134?\227?\130?\185?\227?\131?\136
I change svn/cofig file's [miscellany] section. I add following setting, [miscellany] log-encoding = UTF-8 Then commit action is successfully finished, even if that contain Japanese message. So I think we should have setting of message encoding.
*** Issue 79965 has been marked as a duplicate of this issue. ***
is the action done by submitter to change encoding in subversion itself a valid workaround or should the nb subversion module handle this ? If so, please change priority to p2 since that is proper one for encoding kinds of issues; user in other locale should have right to put comments in their own language. ken.frank@sun.com
fixed in trunk Checking in main/src/org/netbeans/modules/subversion/ui/blame/BlameAction.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/ui/blame/BlameAction.java,v <-- BlameAction.java new revision: 1.7; previous revision: 1.6 done Checking in main/src/org/netbeans/modules/subversion/ui/update/UpdateAction.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/ui/update/UpdateAction.java,v <-- UpdateAction.java new revision: 1.25; previous revision: 1.24 done Checking in main/src/org/netbeans/modules/subversion/client/UnsupportedSvnClientAdapter.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/client/UnsupportedSvnClientAdapter.java,v <-- UnsupportedSvnClientAdapter.java new revision: 1.8; previous revision: 1.7 done Checking in main/src/org/netbeans/modules/subversion/client/parser/LocalSvnInfoImpl.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/client/parser/LocalSvnInfoImpl.java,v <-- LocalSvnInfoImpl.java new revision: 1.3; previous revision: 1.2 done Checking in main/src/org/netbeans/modules/subversion/client/parser/LocalSvnStatusImpl.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/client/parser/LocalSvnStatusImpl.java,v <-- LocalSvnStatusImpl.java new revision: 1.3; previous revision: 1.2 done Checking in main/src/org/netbeans/modules/subversion/util/SvnUtils.java; /cvs/subversion/main/src/org/netbeans/modules/subversion/util/SvnUtils.java,v <-- SvnUtils.java new revision: 1.50; previous revision: 1.49 done Checking in client/nbproject/project.xml; /cvs/subversion/client/nbproject/project.xml,v <-- project.xml new revision: 1.5; previous revision: 1.4 done Checking in external/svnClientAdapter.jar; /cvs/subversion/external/svnClientAdapter.jar,v <-- svnClientAdapter.jar new revision: 1.20; previous revision: 1.19 done
merged into 5.5
verified on nb6 using windows; please reopen if it does not work for you on linux utf8. ken.frank@sun.com