1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[AIX] カタログファイルの編集方法

Posted at

カタログファイルの編集方法

カタログファイルの編集には、dspcatコマンドとgencatコマンドを使用します。

下記はlibc.catの改行を削除するサンプルになります。

# dspmsg -s 1 libc.cat 2
このパス名のファイルまたは
ディレクトリーは存在しません。

# export LANG=Ja_JP
# cd /usr/lib/nls/msg/Ja_JP
# cp -p libc.cat libc.cat_bk
# dspcat -g libc.cat > libc.dspcat
# vi libc.dspcat

下記部分の\n\と改行を削除。
修正前:
2       "このパス名のファイルまたは\n\
ディレクトリーは存在しません。"

修正後:
2       "このパス名のファイルまたはディレクトリーは存在しません。"

# gencat libc.cat libc.dspcat

# dspmsg -s 1 libc.cat 2
このパス名のファイルまたはディレクトリーは存在しません。

備考

この改行の問題は下記APARで報告されていますが、FIN CloseとなっておりAIX 7.3でも修正はされていないようです。
IZ47193: JA_JP EXTRA NEWLINE IN LIBC.CAT
https://www.ibm.com/support/pages/apar/IZ47193

注意

製品として出荷されているファイルを編集することは正式にサポートされる手順ではないため、自己判断での実施が必要になります。
また、bos.msg.Ja_JP.rteファイルセットを更新した際に変更が元に戻るため、OSを更新した際には再修正が必要になります。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?