Bug 170971 - terminal emulator window title isn't in Unicode
Summary: terminal emulator window title isn't in Unicode
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mc
Version: 3
Hardware: i386
OS: Linux
medium
low
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact:
URL:
Whiteboard:
: 170975 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-16 19:10 UTC by Radek Bíba
Modified: 2013-07-02 23:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-10 10:24:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Radek Bíba 2005-10-16 19:29:46 UTC
I'm not sure what's wrong with Bugzilla but it didn't save my report properly,
even on second attempt...
Here is it:

Description of problem:
Please see Summary and Steps to Reproduce for a simple test case.
Note: I didn't want to force you to input a Unicode character from your
keyboard so I'm using "February" in French.

Version-Release number of selected component (if applicable):
mc-4.6.1-3.FC3

How reproducible:
Always

Steps to Reproduce:
(in an emulator in GUI, with titlebar; not in a pure terminal)
1. export LC_ALL=fr_FR.utf8
2. name=`date +%b -d 1Feb`
2. mkdir /tmp/$name
3. cd /tmp/$name
4. mc

Actual Results: The terminal emulator window title contains:

mc - USER@HOST:/tmp/f??v
(note the two question marks)

Expected Results: mc - USER@HOST:/tmp/fév

Additional info:
And no, it's not a bad window-manager setting, since after step #3 you can see
the window title is OK (as long as your terminal emulator reflects current
working directory to the window title, tested in konsole in KDE).

Comment 1 Radek Bíba 2005-10-16 19:32:41 UTC
*** Bug 170975 has been marked as a duplicate of this bug. ***

Comment 2 Jindrich Novy 2005-10-25 10:38:04 UTC
Fixed. The error was in the condition added by the utf8 patch, which was trying
to eliminate all broken utf8 sequences and replace them by '?'s. Unfortunately
the condition was:

if ( *s < ' ' ) { put there '?' instead }

where s is char *s...
That's not good. if ( *(unsigned char *)s < ' ' ) makes the problem go away.

Btw. tested the fixed version with directory "ÅeÅicha"


Note You need to log in before you can comment on or make changes to this bug.