]> Zhao Yanbai Git Server - acecode.git/commitdiff
...
authoracevest <zhaoyanbai@126.com>
Tue, 24 Nov 2020 11:58:26 +0000 (19:58 +0800)
committeracevest <zhaoyanbai@126.com>
Tue, 24 Nov 2020 11:58:26 +0000 (19:58 +0800)
tools/comm/cs

index 178ca8d9569646a6e3ca3753d057bc9846aa9d61..2ec75b72142a3ffc027a2049be436aef7765df65 100755 (executable)
@@ -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}