터미널에서 한글입력시 유니코드로 풀어 보여지네요.

antz의 이미지

이상없이 잘 사용하던 시스템인데.
제가 뭘 잘못 건드렸는지 한글 입력에서 이렇게 나오네요.

한텀에서도 그렇고, 접속해서 쓰는 zterm에서도 똑같은 증상입니다.

Quote:
$ \276\310\263\347\307\317\274\274\277\344?
bash: 안녕하세요?: command not found
$

제가 임의로 gcc도 설치하고 했는데 무엇이 문제인지 모르겠습니다.

답변 부탁드립니다.

Quote:
$ uname -a
Linux pug 2.4.9-e.3 #1 Fri May 3 17:02:43 EDT 2002 i686 unknown

$ rpm -q hanterm-xf
hanterm-xf-2.0.5-173.1

$ rpm -q bash
bash-2.05-8

[dhjang@pug dhjang]$ gcc --version
gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ cat /etc/redhat-release
Red Hat Linux Advanced Server release 2.1AS (Pensacola)

$ echo $LANG
ko_KR.eucKR

$ cat ~/.inputrc
# /etc/inputrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/inputrc,v 1.7 2003/10/13 22:30:09 azarah Exp $

# do not bell on tab-completion
#set bell-style none

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

# Completed names which are symbolic links to
# directories have a slash appended.
set mark-symlinked-directories on

# $if mode=emacs
$if mode=vi

# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word

# for rxvt
"\e[8~": end-of-line

# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif

# fix Home and End for German users
"\e[7~": beginning-of-line
"\e[8~": end-of-line
$

File attachments: 
첨부파일 크기
Plain text icon fix.inputrc.txt1004바이트
Plain text icon old.inputrc.txt1.7 KB
세벌의 이미지

아바타가 세사모네요.
세벌식 쓰시나 보죠? 누구신지 궁금하네요.

ironiris의 이미지

나비등의 설정에서 고칠수 지정가능하지 않을까요?
X는 안써서리.. --;

antz의 이미지

원인을 알 수가 없습니다만,
해결은 했습니다.

.inputrc 이 파일이 문제였습니다.

root로 로긴 했을땐 한글입력이 잘되서 문제는 환경 파일이라고 생각했습니다.

.inputrc 파일을 dot.inputrc 로 바꾸고,
한텀을 띄워 한글을 입력하니 풀어지지 않고 잘~ 입력되었습니다.

이상한것은 .inputrc 파일을 새로 만들고,
dot.inputrc 에 있는 내용을 copy & paste로 붙여넣기 하고,
한텀을 새로 띄워서 한글을 입력해도 한글이 잘 나왔습니다.

다시, dot.inputrc를 .inputrc로 바꾸고 해보면, 한글이 풀립니다.

dot.inputrc와 .inputrc를 diff 해보면 모든 줄이 다르다고 나오네요.

Quote:
$ diff -Naur dot.inputrc .inputrc

--- dot.inputrc Thu Jun 3 18:26:45 2004
+++ .inputrc Mon Jun 7 11:02:59 2004
@@ -1,45 +1,45 @@
# /etc/inputrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/inputrc,v 1.7 2003/10/13 22:30:09 azarah Exp $
-
+
# do not bell on tab-completion
#set bell-style none
-
-set meta-flag on
-set input-meta on
-set convert-meta off
-set output-meta on
-
+
+set meta-flag on
+set input-meta on
+set convert-meta off
+set output-meta on
+
# Completed names which are symbolic links to
# directories have a slash appended.
-set mark-symlinked-directories on
-
+set mark-symlinked-directories on
+
# $if mode=emacs
$if mode=vi
-
+
# for linux console and RH/Debian xterm
-"\e[1~": beginning-of-line
-"\e[4~": end-of-line
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
#"\e[5~": beginning-of-history
#"\e[6~": end-of-history
-"\e[5~": history-search-backward
-"\e[6~": history-search-forward
-"\e[3~": delete-char
-"\e[2~": quoted-insert
-"\e[5C": forward-word
-"\e[5D": backward-word
-
+"\e[5~": history-search-backward
+"\e[6~": history-search-forward
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+"\e[5C": forward-word
+"\e[5D": backward-word
+
# for rxvt
-"\e[8~": end-of-line
-
+"\e[8~": end-of-line
+
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
-"\eOH": beginning-of-line
-"\eOF": end-of-line
-
+"\eOH": beginning-of-line
+"\eOF": end-of-line
+
# for freebsd console
-"\e[H": beginning-of-line
-"\e[F": end-of-line
-$endif
-
+"\e[H": beginning-of-line
+"\e[F": end-of-line
+$endif
+
# fix Home and End for German users
-"\e[7~": beginning-of-line
-"\e[8~": end-of-line
+"\e[7~": beginning-of-line
+"\e[8~": end-of-line

전에도 이런경험을 해본것 같은데....
원인이 뭔지 모르겠습니다.

혹시 아시는 분 계신가요?

파일이 뭐가 틀려서 diff로도 다르다고 나오고, 한글 입력이 올바르게 되었을 까요?

vim에서 set fileformat, file명령어 등 여러가지로 알아보려고 했는데...
잘 못찾겠습니다.

파일도 올리겠습니다.

댓글 첨부 파일: 
첨부파일 크기
Plain text icon 0바이트
Plain text icon 0바이트
Prentice의 이미지

줄 제일 뒤의 스페이스를 지워주세요.

스페이스로만 되어 있는 줄도 지워주시고요..

antz의 이미지

검은해 wrote:
줄 제일 뒤의 스페이스를 지워주세요.

스페이스로만 되어 있는 줄도 지워주시고요..

그렇군요. 검은해님 말씀데로 하니 제대로 됩니다.

뒤에 붙는 "space" 확인 중요하지요. :-)

답변 감사드립니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.