<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]CentOS和MacBook下的cal命令取LANG里面的哪个参数项实现显示中文和英文的？export LC_TIME=zh_CN.UTF-8，变中文，设置export LC_TIME=en_US.UTF-8立即变英文。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 14 Jul 2022 03:20:10 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	背景：干了十年模糊了英文的月份、周，特别是缩写，像rpmbuild打包的日志必须要缩写对，像Git提交日期都是英文的月份，所以这个英文是绕不开的，得捡起来，怎么捡起来先从Unix/Linux操作系统的cal 命令开始入门最好了。<br/>rpmbuild打包：<a href="https://jackxiang.com/post/9689/" target="_blank">https://jackxiang.com/post/9689/</a><br/>#rpmbuild&nbsp;&nbsp;-ba openresty-1.19.9.1.el7.x86_64.spec&nbsp;&nbsp; <br/>错误：%changelog 没有按照时间顺序降序排列&nbsp;&nbsp;<br/>&nbsp;&nbsp;<br/>%changelog&nbsp;&nbsp;<br/>* Tue Mar 8 2022 dong xiang &lt;xiangdong@staff.cntv.com&gt;&nbsp;&nbsp;<br/>- Initial&nbsp;&nbsp;openresty rpm package&nbsp;&nbsp;<br/>&nbsp;&nbsp;<br/>* Wed Feb 15 2017&nbsp;&nbsp;1.11.2.5-%(date +%y%m%d%H%M%%S)&nbsp;&nbsp;<br/>-update openresty to 1.11.2.5 <br/><br/><br/>Git log：<br/>git log index.html<br/>Author: yuchangchun &lt;yuchangchun @staff.xxxx.cn&gt;<br/>Date:&nbsp;&nbsp; Thu May 26 17:06:22 2022 +0800&nbsp;&nbsp;【Thu May】<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;打包demo环境<br/><br/>最终，结论：export LC_TIME=&quot;zh_CN.UTF-8&quot;，变中文，设置export LC_TIME=&quot;en_US.UTF-8&quot;立即变英文。<br/><br/>Mac终端默认是中文：<br/>export LC_TIME=&quot;en_US.UTF-8&quot;<br/>cal -y&nbsp;&nbsp;#显示全年，也就知道了是5月周2。<br/><br/>~/.oh-my-zsh/.alias&nbsp;&nbsp; 设置zsh快捷键<br/>alias scal=&#039;export LANG=en_US.UTF-8 &amp;&amp; cal -y&#039;<br/><br/><br/>export LANG=zh_CN.UTF-8<br/>echo $LANG<br/>zh_CN.UTF-8<br/><br/>cal<br/>cal<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;七月 2022<br/>日 一 二 三 四 五 六<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;2<br/> 3&nbsp;&nbsp;4&nbsp;&nbsp;5&nbsp;&nbsp;6&nbsp;&nbsp;7&nbsp;&nbsp;8&nbsp;&nbsp;9<br/>10 11 12 13 14 15 16<br/>17 18 19 20 21 22 23<br/>24 25 26 27 28 29 30<br/>31<br/><br/><br/>export LANG=en_US.UTF-8<br/>cal<br/>&nbsp;&nbsp;&nbsp;&nbsp; July 2022<br/>Su Mo Tu We Th Fr Sa<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1&nbsp;&nbsp;2<br/> 3&nbsp;&nbsp;4&nbsp;&nbsp;5&nbsp;&nbsp;6&nbsp;&nbsp;7&nbsp;&nbsp;8&nbsp;&nbsp;9<br/>10 11 12 13 14 15 16<br/>17 18 19 20 21 22 23<br/>24 25 26 27 28 29 30<br/>31<br/><br/><br/>locale -a&nbsp;&nbsp;#列出所有支持的公共位置串里找到en_US.UTF-8<br/>locale<br/>LANG=&quot;en_US.UTF-8&quot;<br/>LC_COLLATE=&quot;en_US.UTF-8&quot;<br/>LC_CTYPE=&quot;zh_CN.UTF-8&quot;<br/>LC_MESSAGES=&quot;en_US.UTF-8&quot;<br/>LC_MONETARY=&quot;en_US.UTF-8&quot;<br/>LC_NUMERIC=&quot;en_US.UTF-8&quot;<br/>LC_TIME=&quot;en_US.UTF-8&quot;<br/>LC_ALL=<br/><br/><br/>中文<br/>LANG=&quot;zh_CN.UTF-8&quot;<br/>LC_COLLATE=&quot;zh_CN.UTF-8&quot;<br/>LC_CTYPE=&quot;zh_CN.UTF-8&quot;<br/>LC_MESSAGES=&quot;zh_CN.UTF-8&quot;<br/>LC_MONETARY=&quot;zh_CN.UTF-8&quot;<br/>LC_NUMERIC=&quot;zh_CN.UTF-8&quot;<br/>LC_TIME=&quot;zh_CN.UTF-8&quot;<br/>LC_ALL=<br/><br/><br/><br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]CentOS和MacBook下的cal命令取LANG里面的哪个参数项实现显示中文和英文的？export LC_TIME=zh_CN.UTF-8，变中文，设置export LC_TIME=en_US.UTF-8立即变英文。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>