ALT Linux Bugzilla
– Attachment 306 Details for
Bug 3201
Кодировка при выводе на терминал
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
VTE status patch
grip-3.1.2-alt-utf8-vte-status.patch (text/plain), 726 bytes, created by
Dmitry Vukolov
on 2003-10-26 21:29:05 MSK
(
hide
)
Description:
VTE status patch
Filename:
MIME Type:
Creator:
Dmitry Vukolov
Created:
2003-10-26 21:29:05 MSK
Size:
726 bytes
patch
obsolete
>diff -Nur grip-3.1.2.orig/src/status_window.c grip-3.1.2/src/status_window.c >--- grip-3.1.2.orig/src/status_window.c 2003-10-02 05:15:56 +0400 >+++ grip-3.1.2/src/status_window.c 2003-10-25 14:45:32 +0400 >@@ -82,13 +82,14 @@ > /* Write a line of output to a status window */ > void StatusWindowWrite(StatusWindow *sw,char *msg) > { >- char *buf; >+ char *buf, *locale_msg; > int len; > int pos=0; > > /* gtk_widget_queue_resize(sw->term_widget);*/ > >- len=strlen(msg); >+ locale_msg=g_locale_from_utf8(msg,-1,NULL,&len,NULL); >+ msg=locale_msg; > > buf=(char *)malloc((len*2)+1); > >@@ -107,6 +108,7 @@ > } > > buf[pos]='\0'; >+ g_free(locale_msg); > > /* zvt_term_feed((ZvtTerm *)sw->term_widget,buf,strlen(buf));*/ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3201
:
305
|
306
|
307
|
308