[svnbook] r5797 committed - branches/1.8/zh/book/ ch06-server-configuration.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Wed Oct 10 19:59:50 CDT 2018


Revision: 5797
          http://sourceforge.net/p/svnbook/source/5797
Author:   wuzhouhui
Date:     2018-10-11 00:59:42 +0000 (Thu, 11 Oct 2018)
Log Message:
-----------
1.8/zh: translation of chapter 8 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch06-server-configuration.xml

Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml	2018-10-09 14:09:25 UTC (rev 5796)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-10-11 00:59:42 UTC (rev 5797)
@@ -6910,6 +6910,7 @@
                 路径与钩子脚本交互. 该配置指令在 Subversion 1.8 引进.</para>
 
               <note>
+      <!--
                 <para>Administrators should ensure that the character
                   set and encoding expectations of hook scripts match
                   all the ways they might be invoked.  For example, if
@@ -6923,6 +6924,15 @@
                   (such as repository root paths) must be properly
                   encoded in the filesystem to match the scripts'
                   expectations.</para>
+      -->
+                <para>管理员应该确保钩子脚本的字符集和编码方案与所有可能的调用
+                  方式相匹配. 比如说, 某个仓库同时使用 <command>httpd</command>
+                  和 <command>svnserve</command> 暴露给用户, 如果该配置指令
+                  被设置为 <literal>On</literal>, 那么
+                  <command>svnserve</command> 也要配置成使用 UTF-8 编码 (通过
+                  在它的环境变量中设置合适的地区选项). 而且, 如果钩子脚本所
+                  访问到的文件系统路径 (例如仓库根目录的路径) 包含了非 ASCII
+                  码字符, 那么这些路径的编码也必须和脚本的编码方案相匹配.</para>
               </note>
 
             </listitem>




More information about the svnbook-dev mailing list