Mercurial > hg > mercurial
view mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/Constants.java @ 379:55c2c88a2d82 Eluru-6.5.x
TW-17630, TW-18815 fix encoding for hg log command
Mercurial stores commit messages in UTF-8. During commit it tries to
guess a system encoding and transcode message from system encoding to
UTF-8. When it prints to output it transcodes from UTF-8 to the system
encoding and replace characters which cannot be represented in the
system encoding with the symbol of '?'.
Default console encoding on windows is cp437, and it cannot represent
non-latin symbols, see http://mercurial.selenic.com/wiki/CharacterEncodingOnWindows
for details.
The fix is to not use a console to run hg, and tell mercurial to do
the output in UTF-8.
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Wed, 15 Feb 2012 12:07:12 +0400 |
parents | 0ce0e78bf21d |
children | 643fa1236f4e |
line wrap: on
line source
/* * Copyright 2000-2011 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jetbrains.buildServer.buildTriggers.vcs.mercurial; import jetbrains.buildServer.vcs.VcsRoot; public interface Constants { String VCS_NAME = "mercurial"; String REPOSITORY_PROP = "repositoryPath"; String BRANCH_NAME_PROP = "branchName"; String HG_COMMAND_PATH_PROP = "hgCommandPath"; String HG_PATH_ENV = "TEAMCITY_HG_PATH"; String SERVER_CLONE_PATH_PROP = "serverClonePath"; String USERNAME = "username"; String PASSWORD = VcsRoot.SECURE_PROPERTY_PREFIX + "password"; String UNCOMPRESSED_TRANSFER = "uncompressedTransfer"; }