Intland's free requirements, development and test management hosting.
This server hosts 100.000+ users on the cloud!
transaction abort! due to unknown encoding: x-windows-949#12104/v5
Tags:  not added yet

transaction abort! due to unknown encoding: x-windows-949[BUG-12104]

Tracker: Bugs Priority: NormalNormal Status: Closed
Submitted by: tsangel Jun 11, 2010 09:13 Modified by: johnpeb Oct 18, 2011 01:42 Assigned to: johnpeb Jul 02, 2011 11:27
Category: Core Severity: Major Resolution: Fixed
Release: -- Detected: --
transaction abort!rollback completed
abort: unknown encoding: x-windows-949, please check your locale settings. ...

OS - Microsoft Windows 7 and XP, Korean
Eclipse - 3.5.1 (default encoding for windows version = MS949)
MercurialEclipse - 1.6.0 (also 1.7.0)

* Problem

Cannot commit, push, synchronize, ... after error message "transaction abort!rollback completed"

* Cause

MercurilEclipse calls 'hg.exe' with arguments like this ...

hg.exe --config ui.fallbackencoding=windows-1251 --encoding x-windows-949 ...
'x-windows-949' is not a name that hg.exe, also python, can recognize and 'unknown encoding' error occurs.
Python support 'MS949' encoding.

** Cause

in 'src/com/vectrace/MercurialEclipse/team/'
protected IStatus run(IProgressMonitor monitor) {
 if (HgDebugInstallClient.hgSupportsEncoding(defaultCharset)) {
 return Status.OK_STATUS;
in 'src/com/vectrace/MercurialEclipse/commands/'
private Charset setupEncoding(List<String> cmd) {
 if(hgRoot == null){
  return null;
 Charset charset = hgRoot.getEncoding();
 // Enforce strict command line encoding
 cmd.add(1, '''');
 cmd.add(1, "--encoding");
 // Enforce fallback encoding for UI (command output)
 // Note: base encoding is UTF-8 for mercurial, fallback is only take into account
 // if actual platfrom don't support it.
 cmd.add(1, "ui.fallbackencoding=" + hgRoot.getFallbackencoding().name()); //$NON-NLS-1$
 cmd.add(1, "--config"); //$NON-NLS-1$
 return charset;
'defaultCharset' contains eclipse's default text file encoding (which can be set in preference-General-Workspace).
This variable is set to 'MS949' in Korean version Windows.
However, 'MS949' is changed to 'x-windows-949' by codes 'Charset.forName("MS949")' and ''.
Comments & Attachments (0)
Associations (1)
Children (0)
References (0)
SCM Commits (0)
All (0)

with status and due   Customize
Nothing found to display.