Linux 版 (精华区)
发信人: tcpip (高级草包), 信区: Linux
标 题: make_smbcodepage (1)
发信站: 紫 丁 香 (Fri May 5 20:02:24 2000) WWW-POST
make_smbcodepage (1)
Samba
23 Oct 1998
NAME
名称
make_codepage - Construct a codepage file for Samba
make_codepage - 为samba创建代码页文件
SYNOPSIS
语法
make_smbcodepage [c|d] codepage inputfile outputfile
DESCRIPTION
描述
This program is part of the Samba suite.
make_smbcodepage compiles or de-compiles codepage files for use with the
internationalization features of Samba 2.0
此程序是samba套件的一部分。
make_smbcodepage程序编译或者反编译代码页文件以使samba 2.0具有国际化特征。
OPTIONS
选项
c|d
This tells make_smbcodepage if it is compiling (c) a text format code page
file to binary, or (d) de-compiling a binary codepage file to text.
make_smbcodepage用c参数编译一个文件格式的代码页文件到二进制格式,或者用d参数反
编译一个二进制代码页文件到文本格式。
codepage
This is the codepage we are processing (a number, e.g. 850).
这个参数表示我们要做处理的相应代码页(以数字来表示,如850)。
inputfile
This is the input file to process. In the 'c' case this will be a text
codepage definition file such as the ones found in the Samba source/codepages
directory. In the 'd' case this will be the binary format codepage definition
file normally found in the lib/codepages directory in the Samba install
directory path.
这个参数指出输入的文件。在用c参数时它应该是在位于samba的source/codepages目录中
的一个文本代码页定义文件。而用d参数时它应该是通常位于samba的lib/codepages目录
中的二进制格式代码页定义文件。它正好对应于编译和反编译两种操作。
outputfile
This is the output file to produce.
此参数指出操作后的输出文件。
Samba Codepage Files
samba代码页文件
A text Samba codepage definition file is a description that tells Samba how
to map from upper to lower case for characters greater than ascii 127 in the
specified DOS code page. Note that for certain DOS codepages (437 for
example) mapping from lower to upper case may be non-symmetrical. For
example, in code page 437 lower case a acute maps to a plain upper case A
when going from lower to upper case, but plain upper case A maps to plain
lower case a when lower casing a character.
文本代码页定义文件是对samba如何映射在指定的DOS代码页中ASCII大于127的大小写字符
的描述。注意到特定的DOS代码页(如437)在映射大小写字符时可能并不对称。例如,在代
码页437中,小写字符a在转换成大写时会迅速映射成无格式的大写字符A,而在将字符作
小写转换时,只是将无格式的大字符A直接映射成无格式的小写字符a。
A binary Samba codepage definition file is a binary representation of the
same information, including a value that specifies what codepage this file is
describing.
二进制的samba代码页定义文件是相同信息的二进制表示法,包括这个文件描述的代码页
指定的值。
As Samba does not yet use UNICODE (current for Samba version 2.0) you must
specify the client code page that your DOS and Windows clients are using if
you wish to have case insensitivity done correctly for your particular
language. The default codepage Samba uses is 850 (Western European). Text
codepage definition sample files are provided in the Samba distribution for
codepages 437 (USA), 737 (Greek), 850 (Western European) 852 (MS-DOS Latin
2), 861 (Icelandic), 866 (Cyrillic), 932 (Kanji SJIS), 936 (Simplified
Chinese), 949 (Hangul) and 950 (Traditional Chinese). Users are encouraged to
write text codepage definition files for their own code pages and donate them
to samba-bugs@samba.org. All codepage files in the Samba source/codepages
directory are compiled and installed when a 'make install' command is issued
there.
当samba仍然没有采用UNICODE编码时(当前版本为2.0),如果希望为特殊的语言而适当忽
略大小写的话,你必须指定DOS和Windows客户正在使用的代码页。samba所用的默认代码
页是850(西欧语)。当然在samba发行版中提供了对代码页437(美语)、737(希腊语)、850(
西欧语)、852(MS-DOS拉丁文2)、861(冰岛语)、866(斯拉夫语)、932(日语)、936(简体中
文)、949(韩国)和950(繁体中文)支持在内的代码页定义样本文件。我们鼓励用户在samba
的source/codepages目录下为他们自己的代码页编写文件并捐赠给samba-bugs@samba.org
。所有位于samba的source/codepages目录下的代码页文件可以用“make install”来编
译和安装。
The client codepage used by the smbd server is configured using the client
code page parameter in the smb.conf file.
smbd服务器所用的客户代码页可以在smb.conf文件中用client code page参数来配置。
FILES
文件
codepage_def.<codepage>
These are the input (text) codepage files provided in the Samba
source/codepages directory.
samba的source/codepages目录中提供了一些可以作为输入的代码页文件。
A text codepage definition file consists of multiple lines containing four
fields. These fields are :
文本格式的代码页文件由包含四个字段的多行文本组成。这个段是:
lower: which is the (hex) lower case character mapped on this line.
lower:用来映射小写字符的十六进制值。
upper: which is the (hex) upper case character that the lower case character
will map to.
upper:小写字符相对应映射大写字符的十六进值。
map upper to lower which is a boolean value (put either True or False here)
which tells Samba if it is to map the given upper case character to the given
lower case character when lower casing a filename.
map upper to lower:是一个布尔值(在此以True或False形式出现),这个值告诉samba在
转换文件名时是否要将给定的大写字符映射成指定的小写字符。
map lower to upper which is a boolean value (put either True or False here)
which tells Samba if it is to map the given lower case character to the given
upper case character when upper casing a filename.
map lower to upper:也是一个布尔值(以True或False形式出现),与上述参数相反,它
告诉samba在转换文件名时是否将给定的大写字符映射成指定的小写字符。
codepage.<codepage> These are the output (binary) codepage files produced and
placed in the Samba destination lib/codepage directory.
codepage.<codepage>参数是输出产生并存放到samba的lib/codepage目录下的二进制代码
页文件。
INSTALLATION
安装
The location of the server and its support files is a matter for individual
system administrators. The following are thus suggestions only.
服务器和它的支持文件的存放位置对个别的系统管理员来说是个关键问题。以下是相应的
建议。
It is recommended that the make_smbcodepage program be installed under the
/usr/local/samba hierarchy, in a directory readable by all, writeable only by
root. The program itself should be executable by all. The program should NOT
be setuid or setgid!
推荐你把make_smbcodepage程序安装在/usr/local/samba这个对所有人都可读而只对root
可写的层次目录下。任何都应该可以执行程序本身,而程序不应被设定组身份和属主身份
!
VERSION
版本
This man page is correct for version 2.0 of the Samba suite.
此手册页是针对samba套件版本2.0的。
SEE ALSO
参见
smb.conf(5), smbd (8)
AUTHOR
作者
The original Samba software and related utilities were created by Andrew
Tridgell samba-bugs@samba.org. Samba is now developed by the Samba Team as an
Open Source project similar to the way the Linux kernel is developed.
samba软件和相关工具最初由Andrew Tridgell samba-bugs@samba.org创建。samba现在由
开发组作为类似Linux内核开发采用的开放源代码计划方式来发展。
The original Samba man pages were written by Karl Auer. The man page sources
were converted to YODL format (another excellent piece of Open Source
software, available at ftp://ftp.icce.rug.nl/pub/unix/) and updated for the
Samba2.0 release by Jeremy Allison. samba-bugs@samba.org.
samba手册页最初由Karl Auer撰写。它的源码已被转换成YODL(一种极好的开放源代码软
件,可以在ftp://ftp.icce.rug.nl/pub/unix/处获得)格式并已由Jeremy Allison更新到
samba2.0版本。
See samba (7) to find out how to get a full list of contributors and details
on how to submit bug reports, comments etc.
请参见samba (7)查找如何获得一份完整的维护者列表以及如何提交错误报告及注解等等
。
--
"这一千多年没写诗了?"
"写了, 不过只写了两句."
"千年得两句, 一定是万古丽句了. 念来听听."
"好吧, 我现丑了" 太白星清了清嗓子, 浑厚的男中音在天庭响起:
大海啊, 都是水;
骏马啊, 四条腿;
※ 来源:·紫 丁 香 bbs.hit.edu.cn·[FROM: freesrc.hit.edu]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.562毫秒