Just another IT site ※IT系の記事は当方環境での実施内容となるため実施する場合は自己責任でお願いいたします。At Your Own Risk!! TURN BACK WHILE YOU CAN
PR

Chalow on Rocky Linux9 設定メモ

※IT系の記事は当方環境での実施内容となるため実施する場合は自己責任でお願いいたします。スクリプトはAI生成のものも多いのでコピー&ペーストの際は文字コードに注意ください!

昔の職場で一緒にいた方が作ったソフトウェア

必要なソフトのインストール

chalow – CHAngeLog On the Web

dnf install perl-Jcode
dnf install perl-HTML-Template
dnf install perl-CGI

UTF8対応のため、色々UTF8に直してみる

nkf --overwrite -w ChangeLog 
nkf --overwrite -w cl.conf
nkf --overwrite -w clsearch.cgi

 

vi clsearch.cgi

print "Content-type: text/html; charset=euc-jp\n\n";

↓

print "Content-type: text/html; charset=UTF-8\n\n";

<meta http-equiv="Content-Type" content="text/html; charset=euc-jp">

↓

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

同梱されている
ChangeLogReader.pm

/usr/share/perl5/
にコピー

UTF8モードでchalowを実行

chalow --utf8 -o sample -c cl.conf ChangeLog

 

 

タイトルとURLをコピーしました