delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/14/11:20:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Fri, 15 Nov 2002 01:20:13 +0900 (JST)
X-Biglobe-Sender: <hsaka AT mth DOT biglobe DOT ne DOT jp>
From: hsaka AT mth DOT biglobe DOT ne DOT jp (Hironori SAKAMOTO)
To: cygwin AT cygwin DOT com
Cc: hsaka AT mth DOT biglobe DOT ne DOT jp
Subject: Re: console title
In-Reply-To: <200211141446.XAA25395@udlew10.uldev.lsi.nec.co.jp>
Message-Id: <20021115012013.BACJC0A82633.10625183@mth.biglobe.ne.jp>

I'm sorry again.
I forgot that some charsets like ISO-8859 have character \377.

> When a window title of cygwin console is displayed with escape
> sequence (\033]0;title\007), it can't be displayed if it includes
> non-ASCII characters (\200..\0377).
> Is the following patch acceptable ?

--- fhandler_console.cc.orig	Thu Nov 14 14:51:30 2002
+++ fhandler_console.cc	Thu Nov 14 15:01:54 2002
@@ -1530,7 +1530,7 @@
 	case gettitle:
 	  {
 	    int n = strlen (dev_state->my_title_buf);
-	    if (*src < ' ' || *src >= '\177')
+	    if (*src < ' ' || *src != '\177')
 	      {
 		if (*src == '\007' && dev_state->state_ == gettitle)
 		  {

----------------------------------- 
Hironori SAKAMOTO <hsaka AT mth DOT biglobe DOT ne DOT jp> 
 http://www2u.biglobe.ne.jp/~hsaka/
>
>
>
-------------------------------------------
Hironori SAKAMOTO <hsaka AT mth DOT biglobe DOT ne DOT jp>
 http://www2u.biglobe.ne.jp/~hsaka/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019