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 79444 - I18N - Can't commit if commit message contains Japanese.
Summary: I18N - Can't commit if commit message contains Japanese.
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords: I18N
: 79965 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-29 17:30 UTC by abs
Modified: 2007-06-10 19:19 UTC (History)
2 users (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 abs 2006-06-29 17:30:36 UTC
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
Comment 1 abs 2006-07-07 17:48:24 UTC
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.
Comment 2 Tomas Stupka 2006-07-17 20:18:39 UTC
*** Issue 79965 has been marked as a duplicate of this issue. ***
Comment 3 Ken Frank 2006-08-15 19:09:48 UTC
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
Comment 4 Tomas Stupka 2006-08-18 16:18:54 UTC
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

Comment 5 Tomas Stupka 2006-08-21 14:32:17 UTC
merged into 5.5
Comment 6 Ken Frank 2007-06-10 19:19:00 UTC
verified on nb6 using windows; please reopen if it does not work for you on
linux utf8.

ken.frank@sun.com