View | Details | Raw Unified | Return to bug 3201
Collapse All | Expand All

(-)grip-3.1.2.orig/src/status_window.c (-2 / +4 lines)
Lines 82-94 Link Here
82
/* Write a line of output to a status window */
82
/* Write a line of output to a status window */
83
void StatusWindowWrite(StatusWindow *sw,char *msg)
83
void StatusWindowWrite(StatusWindow *sw,char *msg)
84
{
84
{
85
  char *buf;
85
  char *buf, *locale_msg;
86
  int len;
86
  int len;
87
  int pos=0;
87
  int pos=0;
88
88
89
  /*  gtk_widget_queue_resize(sw->term_widget);*/
89
  /*  gtk_widget_queue_resize(sw->term_widget);*/
90
90
91
  len=strlen(msg);
91
  locale_msg=g_locale_from_utf8(msg,-1,NULL,&len,NULL);
92
  msg=locale_msg;
92
93
93
  buf=(char *)malloc((len*2)+1);
94
  buf=(char *)malloc((len*2)+1);
94
95
Lines 107-112 Link Here
107
  }
108
  }
108
  
109
  
109
  buf[pos]='\0';
110
  buf[pos]='\0';
111
  g_free(locale_msg);
110
112
111
  /*  zvt_term_feed((ZvtTerm *)sw->term_widget,buf,strlen(buf));*/
113
  /*  zvt_term_feed((ZvtTerm *)sw->term_widget,buf,strlen(buf));*/
112
114

Return to bug 3201