| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 6 |
<meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" /> |
| 7 |
<title>win32mbcs</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="win32mbcs"> |
| 12 |
<span id="ext-win32mbcs"></span> |
| 13 |
<h1 class="title">win32mbcs</h1> |
| 14 |
|
| 15 |
<div class="contents htmlonly topic" id="contents"> |
| 16 |
<p class="topic-title"><a class="reference internal" href="#top">Contents</a></p> |
| 17 |
<ul class="simple"> |
| 18 |
<li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li> |
| 19 |
</ul> |
| 20 |
</div> |
| 21 |
<p>allow the use of MBCS paths with problematic encodings</p> |
| 22 |
<div class="section" id="description"> |
| 23 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 24 |
<p>Some MBCS encodings are not good for some path operations (i.e. |
| 25 |
splitting path, case conversion, etc.) with its encoded bytes. We call |
| 26 |
such a encoding (i.e. shift_jis and big5) as "problematic encoding". |
| 27 |
This extension can be used to fix the issue with those encodings by |
| 28 |
wrapping some functions to convert to Unicode string before path |
| 29 |
operation.</p> |
| 30 |
<p>This extension is useful for:</p> |
| 31 |
<ul class="simple"> |
| 32 |
<li>Japanese Windows users using shift_jis encoding.</li> |
| 33 |
<li>Chinese Windows users using big5 encoding.</li> |
| 34 |
<li>All users who use a repository with one of problematic encodings on |
| 35 |
case-insensitive file system.</li> |
| 36 |
</ul> |
| 37 |
<p>This extension is not needed for:</p> |
| 38 |
<ul class="simple"> |
| 39 |
<li>Any user who use only ASCII chars in path.</li> |
| 40 |
<li>Any user who do not use any of problematic encodings.</li> |
| 41 |
</ul> |
| 42 |
<p>Note that there are some limitations on using this extension:</p> |
| 43 |
<ul class="simple"> |
| 44 |
<li>You should use single encoding in one repository.</li> |
| 45 |
<li>If the repository path ends with 0x5c, .hg/hgrc cannot be read.</li> |
| 46 |
<li>win32mbcs is not compatible with fixutf8 extension.</li> |
| 47 |
</ul> |
| 48 |
<p>By default, win32mbcs uses encoding.encoding decided by Mercurial. |
| 49 |
You can specify the encoding by config option:</p> |
| 50 |
<pre class="literal-block"> |
| 51 |
[win32mbcs] |
| 52 |
encoding = sjis |
| 53 |
</pre> |
| 54 |
<p>It is useful for the users who want to commit with UTF-8 log message.</p> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
</body> |
| 58 |
</html> |