From: acevest Date: Tue, 24 Nov 2020 11:58:26 +0000 (+0800) Subject: ... X-Git-Url: http://zhaoyanbai.com/repos/html/index.html?a=commitdiff_plain;h=69361810dba055397f2f04b04ef7a78fa8e90e10;p=acecode.git ... --- diff --git a/tools/comm/cs b/tools/comm/cs index 178ca8d..2ec75b7 100755 --- a/tools/comm/cs +++ b/tools/comm/cs @@ -8,7 +8,7 @@ use strict; use POSIX qw(strftime setlocale); -setlocale(&POSIX::LC_ALL,'en_US.UTF-8'); +setlocale(&POSIX::LC_TIME,'en_US.UTF-8'); my $filename = " File Name: "; my $author = " Author: Zhao Yanbai\n"; @@ -34,6 +34,7 @@ my %s = ("c" => {CSTYLE}, "go" => {CSTYLE}, "cpp" => {CSTYLE}, "h" => {CSTYLE}, + "rs" => {CSTYLE}, "pl" => {env=>"#!/usr/bin/env perl\n", SSTYLE}, "py" => {env=>"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n", SSTYLE}, "rb" => {env=>"#!/usr/bin/env ruby -w\n", SSTYLE}