Recently, because of the need to deploy a new CentOS 6, in the use of wget to download the source code to compile the package, there is a very frustrating problem is that the progress bar will continue to display "ETA (UK Central time)" and then the progress bar is constantly replaced, so that simply does not work properly, So on Google to find the next, the original CentOS 6 wget Chinese font translation error
#错误的信息提示msgstr "ETA (UK Central Time)%s" #正确的信息提示msgstr "ETA%s"
This does not know which programmer is writing Chinese wget.mo when the hand owes, so that we use the new system or update wget will appear full screen progress bar, so long as the wget.mo in the string to replace it.
[Email protected] lc_messages]# Cd/usr/share/locale/zh_cn/lc_messages/[[email protected] lc_messages]# mv./wget. {mo,mo.back} #要养成习惯做一下备份 [[email protected] lc_messages]# msgunfmt Wget.mo.back-o-| Sed ' s/eta (UK Central Time)/eta/g ' | MSGFMT-O wget.mo# the msgunfmt and msgfmt are used to view the binary files in *.mo format, where the source file is overwritten with the stdi/o of the backup file.
After modification, use wget to download the file again, the progress bar is all right.
This article is from the "Technical essay" blog, please be sure to keep this source http://jim123.blog.51cto.com/4763600/1881595
wget progress bar in Centos 6 shows bugs in multiple lines