根据我在last question中发现的内容,我现在正在尝试解析lstype -l的输出,以便确定给定元素类型的超类型和类型管理器。
我最初的想法是逐行处理输出,查找以supertype:开头的第一行,然后取该行的其余部分。
但是,只有当cleartool始终以英语输出时,这才能起作用。我正在编写的代码可以在日语ClearCase环境中使用,我担心日语版本的ClearCase可能会输出一些与cleartool不同的内容。这是一个合理的问题,还是cleartool将始终以英语输出?
输出示例:
cleartool> lstype -l eltype:utf8_file@\vobFoo
element type "utf8_file"
2012-12-03T19:08:24-06:00 by [username].None@CLEARCASE-VM
"Predefined element type used to represent a UTF8 file."
owner: [computer]\[username]
group: [computer]\None
scope: this VOB (ordinary type)
type manager: utf8_file_delta
supertype: file
meta-type of element: file element发布于 2012-12-13 05:56:51
cleartool本身并不是本地化的,除了日语(我在很多不同的语言上都设置了LANG --但是日语--从来没有见过不同的输出)。
如"About en_US.UTF-8 LANG variable and its affect on xclearcase“所示,xcleartool (Unix的图形用户界面)是"Rational ClearCase on the UNIX system and Linux”细节。
参见"Supported IBM Rational ClearCase configurations in multiple language environments":
Rational ClearCase
运行英语或日语操作系统的
- English clients that act as view server hosts and run English operating systems
- Japanese clients that act as view server hosts and run Japanese operating systems
运行英语或日语操作系统的
的
只有CCRC GUI支持更多的语言,即"Group-1":
巴西Portuguese
所以,正如“Setting Japanese language options”中所描述的:
Windows系统上的
设置以下两组环境变量之一:
在以下环境变量中:
C:\Program Files\IBM\RationalSDLC\ClearCase\bin\resdll是日语消息目录所在的ja_JP,,%L是为%N设置的环境变量,bccMsg.cat.是日语消息目录,是日语消息目录所在的LANG
使用
%%L和%%N代替%L和%N在批处理文件中执行set命令。
set LANG=ja_JP
set NLSPATH=C:\Program Files\IBM\RationalSDLC\ClearCase\bin\resdll\%L\%N;%NLSPATH%
set RCC_CATALOG=C:\Program Files\IBM\RationalSDLC\ClearCase\bin\resdll\ja_JP\bccMsg.cat发布于 2012-12-13 05:50:42
我发现了this page,这似乎意味着它没有本地化。引用:
シンボリック・リンクを検索し、出力します。
UNIX と Linux:
2 種類の方法が存在します。
1. cleartool find -all -type l -exec '/usr/atria/bin/cleartool describe $CLEARCASE_PN'
例:
% cleartool find -all -type l -exec '/usr/atria/bin/cleartool describe $CLEARCASE_PN'
symbolic link "/vobs/french/ctlink_import" -> import
created 25-Feb-03.12:34:39 by Joe_USER (joeuser.syb@lemur)
Protection:
User : joeuser : rwx
Group: syb : rwx
Other: : rwx
symbolic link "/vobs/french/slink_import" -> import
created 16-Apr-03.14:02:17 by Joe_USER (joeuser.syb @lemur)
Protection:
User : joeuser : rwx
Group: syb : rwx
Other: : rwx两个建议:
LANG环境变量强制使用某种语言。例如,您可以运行LANG=en_US cleartool或LANG=C cleartool.https://stackoverflow.com/questions/13849109
复制相似问题