[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:29438] Re: KDEの文字化け



本多です

> # あとは dolphin でネットワーク経由の文字コードが化けなくなればなぁ..:-)

これって、fish(ssh)やftpもだめなのですね。これは嫌な感じですね。
添付のpatchでfishとftpはOKです(sambaは環境がないので不明).

patchは別に怪しい事はしておらず、
remote file nameのdefault encodingをlocal machineの
encodingと仮定するものです。Sourceを見ると設定file(どれ?)
のCharsetでこれは変更出来るようなのですが良く判りません
(実装不完全にもみえますし)。

Defaultの値は論議の必要なところではありますが、
とりあえず便利です...

Naofumi Honda

*** slavebase.cpp	2008-11-27 02:16:58.000000000 +0900
--- slavebase.cpp.org	2008-11-27 02:15:59.000000000 +0900
***************
*** 239,245 ****
--- 239,249 ----
      d->timeout = 0;
      connectSlave(QFile::decodeName(app_socket));
  
+ #ifdef	ORIGINAL_CODE
      d->remotefile = 0;
+ #else
+     d->remotefile = new KRemoteEncoding( 0 );
+ #endif
      d->inOpenLoop = false;
      d->exit_loop = false;
  }
***************
*** 1027,1033 ****
--- 1031,1041 ----
          KSocks::setConfig(d->configGroup);
  #endif
          delete d->remotefile;
+ #ifdef	ORIGINAL_CODE
          d->remotefile = 0;
+ #else
+         d->remotefile = new KRemoteEncoding( 0 );
+ #endif
      } break;
      case CMD_GET: {
          stream >> url;
*** kremoteencoding.cpp	2008-11-27 01:32:14.000000000 +0900
--- kremoteencoding.cpp.org	2008-11-27 02:16:28.000000000 +0900
***************
*** 28,38 ****
  {
    public:
      KRemoteEncodingPrivate()
- #ifdef	ORIGINAL_CODE
        : m_codec(0)
- #else
-       : m_codec(QTextCodec::codecForLocale())
- #endif
      {
      }
  
--- 28,34 ----
***************
*** 108,118 ****
    if (name)
      d->m_codec = QTextCodec::codecForName(name);
    else
- #ifdef	ORIGINAL_CODE
      d->m_codec = QTextCodec::codecForMib( 106 ); // fallback to UTF-8
- #else
-     d->m_codec = QTextCodec::codecForLocale();
- #endif
  
    if (d->m_codec == 0)
      d->m_codec = QTextCodec::codecForMib(4 /* latin-1 */);
--- 104,110 ----

Follow-Ups
[plamo:29439] Re: KDEの文字化け, Naofumi Honda
References
[plamo:29420] KDEの文字化け, Naofumi Honda
[plamo:29431] Re: KDEの文字化け, KOJIMA Mitsuhiro

[検索ページ] [メール一覧]
Plamo ML 公開システム