Search code examples
clearcasecleartool

Is cleartool output localized?


From what I discovered in my last question, I am now attempting to parse the output from lstype -l in order to determine the supertype and type manager for a given element type.

My initial thought is to process the output line-by-line and look for the first line starting with supertype:, then take the remaining portion of the line.

However, this will only work if cleartool always outputs in English. The code I'm writing could be used in a Japanese ClearCase environment, and I am concerned that a Japanese version of ClearCase may output something different from cleartool. Is this a valid concern, or will cleartool always output in English?

Example output:

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

Solution

  • cleartool itself is not localized except for Japanese (I have set LANG on many different languages - but Japanese - without having ever seen a different output).

    xcleartool (a GUI interface for Unix) is, as "About en_US.UTF-8 LANG variable and its affect on xclearcase" illustrates, or "Rational ClearCase on the UNIX system and Linux" details.

    See "Supported IBM Rational ClearCase configurations in multiple language environments":

    Rational ClearCase

    • VOB servers that run English or Japanese operating systems can support:
      • 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
    • VOB and view servers that run English or Japanese operating systems can support:
      • English clients that run English operating systems
      • Japanese clients that run Japanese operating systems

    Only CCRC GUI support more languages, ie "Group-1":

    • Brazilian Portuguese
    • French
    • German
    • Italian
    • Japanese
    • Korean
    • Simplified Chinese
    • Spanish
    • Traditional Chinese

    So, as described in "Setting Japanese language options":

    On a Windows system set either of the following sets of environment variables:
    In the following environment variables:

    • C:\Program Files\IBM\RationalSDLC\ClearCase\bin\resdll is where the Japanese message catalog is located,
    • %L is the environment variable you set for LANG, which is ja_JP, and
    • %N is the Japanese message catalog, which is bccMsg.cat.

    Use %%L and %%N to carry out the set command within a batch file instead of %L and %N.

    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