[問題] 架bbs主選單亂碼,是中文環境的問題嗎?

看板FreeBSD作者 (かがみは俺の嫁。)時間13年前 (2011/02/18 00:34), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
※ [本文轉錄自 PttCurrent 看板 #1DNKuHeU ] 作者: siriusu (かがみは俺の嫁。) 看板: PttCurrent 標題: [問題] 主選單亂碼,是中文環境的問題嗎? 時間: Fri Feb 18 00:34:23 2011 把一個pttcurrent的舊系統bsd版本升級&ptt版本更新到最新 結果目前遇到最大的問題是主選單變這樣 -- 柽蜓蔃泾銵具肑 灰姑娘城堡 鲭缫SBadmint ● ● ● ● ● ● ● ● ● ● My Dear friend 下次再來喔! ● ● ● ● ╭╦═╮╭╦═╮╭╦═╮╔╦═╮ ╔╦═╮╭╦ ╮╭╦═╮ ╠╣╭╮╠╣ ║╠╣ ║╠╣ ║ ╠╬═╣╰╩╦╯╠╬═ ╰╩═╯╰╩═╯╰╩═╯╚╩═╯ ╚╩═╯╰═╩ ╰╩═╯ █■█■█■█■█■█■█■█■█■█■█■█■█■█■█■█■█■█■█■█ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ (0)Admin 造蝟餌絞蝬剛風耠鄊 (A)nnounce 造蝎曇骓砌불甈萠鄊 ●(F)avorite 造鄠萠胦蒛 鄊 (C)lass 造疯떄閮殚ꮖ耠鄊 (M)ail 造蝘癳犖靽∩辣耠鄊 (T)alk 造隡隒箫予耠鄊 (U)ser 造鲸犖閮剖꺚耠鄊 (X)yz 造蝟餌絞鞈殴ꢊ耠鄊 (P)lay 造憡ɒꢂ乐벑鈠鄊 (N)amelist 造蝺函馅亙邍긠鄊 (G)oodbye a隋嚗鉴蚍閬骛肦 -- 因為不太清楚負責輸出這些的是誰@@所以我先去試著改了 csh.cshrc和 -- # $FreeBSD: src/etc/csh.cshrc,v 1.3.56.1.4.1 2010/06/14 02:09:06 kensmith Exp $ # # System-wide .cshrc file for csh(1). umask 022 setenv PAGER more set nobeep set autolist set notify set color set autologout = (300) set dspmbyte = big5 stty pass8 setenv LC_CTYPE en_US.ISO8859-1 setenv LC_ALL zh_TW.Big5 setenv LANG zh_TW.Big5 setenv CLICOLOR alias ls 'ls -F \!*' alias cp 'cp -i \!*' alias rm 'rm -i \!*' alias mv 'mv -i \!*' alias telnet 'telnet -8 \!*' if ($?prompt) then if(! $?WINDOW ) then set prompt="%{^[[1;33m%}%n%{^[[m%}@%{^[[1;37m%}%m%{^[[m%} %{^[[1;32m%}[%~]%{^[[m%} > " else set prompt="%{^[[1;33m%}%n%{^[[m%}@%{^[[1;37m%}%m%{^[[m%} %{^[[1;32m%}[%~]%{^[[m%} %{^[[1;35m%}[W$WINDOW]%{^[[m%} > " endif if ($?tcsh) then set mail = (/var/mail/$USER) bindkey "^W" backward-delete-word bindkey -k up history-search-backward bindkey -k down history-search-forward endif endif -- cshrc.login -- # $FreeBSD: src/etc/csh.login,v 1.21.30.2.2.1 2010/06/14 02:09:06 kensmith Exp $ # # System-wide .login file for csh(1). # Uncomment this to give you the default 4.2 behavior, where disk # information is shown in K-Blocks # setenv BLOCKSIZE K # # For the setting of languages and character sets please see # login.conf(5) and in particular the charset and lang options. # For full locales list check /usr/share/locale/* # # Check system messages # msgs -q # Allow terminal messages # mesg y setenv ENABLE_STARTUP_LOCALE zh_TW.Big5 setenv LC_CTYPE en_US.ISO8859-1 setenv LANG zh_TW.Big5 stty pass8 -- 也試著裝了big5con,但沒有效果 請問我該改哪邊呢,謝謝! P.S. 如果我用vim開啟 ~/etc/editable 等檔案時一開始是亂碼 需用 :set encoding=utf8 :set termencoding=big5 :set fileencoding=utf8 才能正常瀏覽 但是我把cs.cshrc的LANG改big5或UTF-8都還是有問題 謝謝各位! 附錄一 已裝的packages: apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10 Apache Portability Library autoconf-2.68 Automatically configure source code on many Un*x platforms autoconf-wrapper-20101119 Wrapper script for GNU autoconf automake-1.11.1 GNU Standards-compliant Makefile generator (1.11) automake-wrapper-20101119 Wrapper script for GNU automake db41-4.1.25_4 The Berkeley DB package, revision 4.1 db42-4.2.52_5 The Berkeley DB package, revision 4.2 expat-2.0.1_1 XML 1.0 parser written in C gdbm-1.8.3_3 The GNU database manager gettext-0.18.1.1 GNU gettext package gmake-3.81_4 GNU version of 'make' utility help2man-1.38.4 Automatically generating simple manual pages from program o ja-lynx-2.8.7.r1 A terminal-based World-Wide Web Client with multi-byte modi ja-perl-5.005.03_5 Pattern Extraction and Recognition Language + Japanese patc libiconv-1.13.1_1 A character set conversion library libsigsegv-2.9 Handling page faults in user mode libtool-2.2.10 Generic shared library support script m4-1.4.15,1 GNU m4 mime-support-3.51.1 MIME Media Types list neon29-0.29.5 An HTTP and WebDAV client library for Unix systems p5-Locale-gettext-1.05_3 Message handling functions perl-5.10.1_3 Practical Extraction and Report Language pgp-2.6.3i_1 PGP International version - Public-Key encryption for the m pkg-config-0.25_1 A utility to retrieve information about installed libraries portupgrade-2.4.8_1,2 FreeBSD ports/packages administration and management tool s python26-2.6.6 An interpreted object-oriented programming language ruby-1.8.7.302,1 An object-oriented interpreted scripting language ruby18-bdb-0.6.5_1 Ruby interface to Sleepycat's Berkeley DB revision 2 or lat sqlite3-3.7.4 An SQL database engine in a C library subversion-1.6.15 Version control system tcl-8.5.9 Tool Command Language tcl-modules-8.5.9 Tcl common modules unzip-6.0 List, test and extract compressed files in a ZIP archive vim-lite-7.3.81 Vi "workalike", with many additional features (Lite package zh-autoconvert-0.3.16_1 Intelligent Chinese encoding converter zh-big5con-0.92i Big5 Chinese console zh-mutt-devel-1.5.21_20100927 The Mongrel of Mail User Agents with Chinese support 附錄二 env的結果(bbsadm) HOSTTYPE=FreeBSD VENDOR=intel OSTYPE=FreeBSD MACHTYPE=i386 SHLVL=2 PAGER=more LC_CTYPE=en_US.ISO8859-1 LC_ALL=zh_TW.Big5 LANG=zh_TW.Big5 CLICOLOR= ENABLE_STARTUP_LOCALE=zh_TW.Big5 EDITOR=vi -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.33.2 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.33.2
文章代碼(AID): #1DNKukfp (FreeBSD)
文章代碼(AID): #1DNKukfp (FreeBSD)