gau를 UTF-8 환경에서 사용 가능하게 수정하고 싶습니다.

소리의 이미지

안녕하세요.

제가 하이텔 때문에 gau라는 X환경 VT 접속 클라이언트를 사용하는데요.
( http://www.kr.freebsd.org/~hwang/gau/ )

EUC-KR을 쓰다가 UTF-8 환경으로 옮겨왔는데, gau가 실행이 안 되더군요. 이를 수정해서 UTF-8 환경에서 사용하고 싶습니다.

iconv로 소스 파일들과 설정 파일들의 인코딩을 UTF-8로 바꾸고 다시 컴파일하니 실행도 되고 겉모양까지는 한글도 제대로 나오는데, 실제 pc통신을 하는 터미널(?) 안의 한글은 깨져 나오더군요. 글꼴은 물론 EUC-KR 환경에서 잘 작동하던 걸로 설정되어 있습니다.(첨부1: 캡쳐화면)

소스 파일을 훑어보니 감으로는 ansiterm.c 소스 파일을 수정하면 될 것 같은데... EUC-KR이나 UTF-8의 인코딩에 대한 지식이 전혀 없다보니 어떻게 해야할 지 모르겠습니다.

			for (j = 0; j < i; j++) {
			    if (buf[i] >= 0x21 && buf[i] <= 0x7e) buf[i] |= 0x80;
			}

한글을 파싱하는 듯한 부분에 이런 종류의 코드도 보이고 한데요...

첨부1,2로 ansiterm.c와 ansiterm.h 파일을 올렸습니다.

어떻게 수정하면 좋을지 도움 주시면 정말 감사하겠습니다.

File attachments: 
첨부파일 크기
파일 ansiterm.h3.38 KB
파일 ansiterm.c61.82 KB
Image icon cap_gaui.png24.33 KB
ganadist의 이미지

http://gtkcomm.kldp.net 을 써보세요.

----
데스크탑 프로그래머를 꿈꾸는 임베디드 삽질러

소리의 이미지

gtkcomm 이란 프로그램도 사용해 보려고 했는데요...

컴파일 도중 에러가 납니다.

In file included from pcConfig.c:21:
pcMain.h:105: error: syntax error before '*' token
pcMain.h:105: warning: data definition has no type or storage class
pcMain.h:256: error: syntax error before '*' token
pcMain.h:257: error: syntax error before '*' token
pcMain.h:258: error: `AddBookmarkMenus' declared as function returning a function
pcMain.h:259: error: syntax error before "void"
pcConfig.c:434: error: syntax error before '*' token
pcConfig.c:434: error: `AddBookmarkMenus' declared as function returning a function
pcConfig.c:435: error: syntax error before "void"
pcConfig.c:442: error: conflicting types for `fname'
pcConfig.c:439: error: previous declaration of `fname'
pcConfig.c:442: warning: data definition has no type or storage class
pcConfig.c:443: warning: passing arg 1 of `fopen' makes pointer from integer without a cast
pcConfig.c:443: warning: initialization makes integer from pointer without a cast
pcConfig.c:443: error: initializer element is not constant
pcConfig.c:443: warning: data definition has no type or storage class
pcConfig.c:444: warning: parameter names (without types) in function declarationpcConfig.c:444: error: conflicting types for `g_free'
/usr/include/glib-2.0/glib/gmem.h:52: error: previous declaration of `g_free'
pcConfig.c:444: warning: data definition has no type or storage class
pcConfig.c:445: error: syntax error before "if"
pcConfig.c:450: error: syntax error before "entry"
pcConfig.c:450: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "__extension__"
pcConfig.c:452: error: syntax error before "__uint8_t"
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before '}' token
pcConfig.c:452: warning: initialization makes pointer from integer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: error: syntax error before "switch"
pcConfig.c:452: error: conflicting types for `__u'
pcConfig.c:452: error: previous declaration of `__u'
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before '->' token
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: error: redefinition of `__u'
pcConfig.c:452: error: `__u' previously defined here
pcConfig.c:452: warning: initialization makes integer from pointer without a cast
pcConfig.c:452: error: initializer element is not constant
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before "case"
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before '}' token
pcConfig.c:452: error: syntax error before '\x0'
pcConfig.c:452: warning: data definition has no type or storage class
pcConfig.c:452: error: syntax error before '}' token
pcConfig.c:454: warning: data definition has no type or storage class
pcConfig.c:455: warning: data definition has no type or storage class
pcConfig.c:456: error: syntax error before "while"
pcConfig.c:469: error: redefinition of `modem'
pcConfig.c:455: error: `modem' previously defined here
pcConfig.c:469: warning: data definition has no type or storage class
pcConfig.c:470: error: syntax error before '}' token
pcConfig.c:474: error: redefinition of `modem'
pcConfig.c:469: error: `modem' previously defined here
pcConfig.c:474: warning: data definition has no type or storage class
pcConfig.c:475: error: syntax error before '}' token
pcConfig.c:502: error: syntax error before '(' token
pcConfig.c:507: error: conflicting types for `p'
pcConfig.c:439: error: previous declaration of `p'
pcConfig.c:507: warning: data definition has no type or storage class
pcConfig.c:509: error: syntax error before "if"
pcConfig.c:527: warning: data definition has no type or storage class
pcConfig.c:528: error: syntax error before '}' token
pcConfig.c:574: error: redefinition of `num'
pcConfig.c:527: error: `num' previously defined here
pcConfig.c:574: warning: data definition has no type or storage class
pcConfig.c:575: error: syntax error before '}' token
pcConfig.c:585: error: redefinition of `num'
pcConfig.c:574: error: `num' previously defined here
pcConfig.c:585: warning: data definition has no type or storage class
pcConfig.c:586: error: syntax error before '}' token
pcConfig.c:624: warning: parameter names (without types) in function declarationpcConfig.c:624: warning: data definition has no type or storage class
pcConfig.c:625: error: syntax error before "continue"
pcConfig.c:628: error: conflicting types for `ModemInfoList'
pcMain.h:202: error: previous declaration of `ModemInfoList'
pcConfig.c:628: error: `info' undeclared here (not in a function)
pcConfig.c:628: warning: passing arg 1 of `g_slist_append' makes pointer from integer without a cast
pcConfig.c:628: warning: data definition has no type or storage class
pcConfig.c:630: error: syntax error before '{' token
pcConfig.c:637: error: syntax error before '&' token
pcConfig.c:638: warning: data definition has no type or storage class
pcConfig.c:639: warning: data definition has no type or storage class
pcConfig.c:640: error: syntax error before '}' token
pcConfig.c:644: error: conflicting types for `p'
pcConfig.c:507: error: previous declaration of `p'
pcConfig.c:644: error: `info' undeclared here (not in a function)
pcConfig.c:644: warning: data definition has no type or storage class
pcConfig.c:645: error: syntax error before '.' token
pcConfig.c:650: error: syntax error before '&' token
pcConfig.c:651: warning: data definition has no type or storage class
pcConfig.c:652: error: syntax error before '.' token
pcConfig.c:652: warning: data definition has no type or storage class
pcConfig.c:674: error: syntax error before '(' token
pcConfig.c:679: error: conflicting types for `p'
pcConfig.c:644: error: previous declaration of `p'
pcConfig.c:679: warning: data definition has no type or storage class
pcConfig.c:681: error: syntax error before "if"
pcConfig.c:722: warning: parameter names (without types) in function declarationpcConfig.c:722: warning: data definition has no type or storage class
pcConfig.c:723: error: syntax error before "continue"
pcConfig.c:726: error: conflicting types for `TelnetInfoList'
pcMain.h:199: error: previous declaration of `TelnetInfoList'
pcConfig.c:726: error: `info' undeclared here (not in a function)
pcConfig.c:726: warning: passing arg 1 of `g_slist_append' makes pointer from integer without a cast
pcConfig.c:726: warning: data definition has no type or storage class
pcConfig.c:728: error: syntax error before '{' token
pcConfig.c:735: error: syntax error before '&' token
pcConfig.c:736: warning: data definition has no type or storage class
pcConfig.c:737: error: redefinition of `a'
pcConfig.c:639: error: `a' previously defined here
pcConfig.c:737: warning: data definition has no type or storage class
pcConfig.c:738: error: syntax error before '}' token
pcConfig.c:742: error: conflicting types for `p'
pcConfig.c:679: error: previous declaration of `p'
pcConfig.c:742: error: `info' undeclared here (not in a function)
pcConfig.c:742: warning: data definition has no type or storage class
pcConfig.c:743: error: syntax error before '.' token
pcConfig.c:748: error: syntax error before '&' token
pcConfig.c:749: warning: data definition has no type or storage class
pcConfig.c:750: error: syntax error before '.' token
pcConfig.c:750: warning: data definition has no type or storage class
pcConfig.c:759: error: syntax error before '&' token
pcConfig.c:762: warning: parameter names (without types) in function declarationpcConfig.c:762: warning: data definition has no type or storage class
pcConfig.c:763: error: syntax error before '}' token
make[2]: *** [pcConfig.o] 오류 1
make[2]: Leaving directory `/home/wwl/downloads/gtkcomm-0.8.1/src'
make[1]: *** [all-recursive] 오류 1
make[1]: Leaving directory `/home/wwl/downloads/gtkcomm-0.8.1'
make: *** [all] 오류 2

아무래도 문제는 GtkItemFactory란 구조체(?)가 deprecate되고 GtkUIManager로 바뀌었기 때문인 것 같군요.

GtkUIManager로 바꿔 컴파일해 보았지만, 이번엔 GtkItemFactoryEntry가 없다고 에러가... (여기에 대해선, Gtk 도움말 페이지에선가 보니까 그런 구조첸 deprecate 된 거니 그냥 쓰지 말라고 나오더군요.)

웬만하면 지금까지 써 왔던 gau를 쓰고 싶은데, 무슨 방법이 없을까요...

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.