Broken UTF-8

Bug #13247 reported by Nafallo Bjälevik on 2005-02-24
8
Affects Status Importance Assigned to Milestone
irssi-text (Ubuntu)
Medium
Colin Watson

Bug Description

When I type something in, Swedish characters shows as squares until sent. Those
characters sent by others shows as squares to.

nafallo@darkelf:~ $ locale | grep ^LANG
LANG=sv_SE.UTF-8

Matt Zimmerman (mdz) wrote :

Are you running it in a terminal or on the console? Please also send:

- The remainder of the output from "locale"
- The value of the term_type setting in irssi

Nafallo Bjälevik (nafallo) wrote :

(In reply to comment #1)
> Are you running it in a terminal or on the console?
In a terminal.

> Please also send:
>
> - The remainder of the output from "locale"
nafallo@darkelf:~ $ locale
LANG=sv_SE.UTF-8
LC_CTYPE="sv_SE.UTF-8"
LC_NUMERIC="sv_SE.UTF-8"
LC_TIME="sv_SE.UTF-8"
LC_COLLATE="sv_SE.UTF-8"
LC_MONETARY="sv_SE.UTF-8"
LC_MESSAGES="sv_SE.UTF-8"
LC_PAPER="sv_SE.UTF-8"
LC_NAME="sv_SE.UTF-8"
LC_ADDRESS="sv_SE.UTF-8"
LC_TELEPHONE="sv_SE.UTF-8"
LC_MEASUREMENT="sv_SE.UTF-8"
LC_IDENTIFICATION="sv_SE.UTF-8"
LC_ALL=

> - The value of the term_type setting in irssi
22:15 [lookandfeel]
22:15 term_type = 8bit

This is a upgraded warty-install. Tracked hoary since december.

Matt Zimmerman (mdz) wrote :

According to irssi users, you must set term_type = utf8

Nafallo Bjälevik (nafallo) wrote :

Then this shall be changed. Hoary uses UTF-8 by default, so should this package.
Reopened...

Nafallo Bjälevik (nafallo) wrote :

Created an attachment (id=1655)
Patch for irssi.conf to use utf8 as default for term_type

Nafallo Bjälevik (nafallo) wrote :

(In reply to comment #3)
> According to irssi users, you must set term_type = utf8

damn, seems it didn't work. I should have tried before making the patch...

Nafallo Bjälevik (nafallo) wrote :

term_type = utf-8 for starters. I try to look into it more deeply. the answer on
#irssi was that CVS had something called /recode. maybe this is more likely to
be a target for 5.10? but anyway, it is hoary that ships with utf-8 by default.

Matt Zimmerman (mdz) wrote :

it is working fine for others with term_type = utf8. You said that you were
using term_type = 8bit, so I assumed you were overriding the default.

Nafallo Bjälevik (nafallo) wrote :

(In reply to comment #8)
> it is working fine for others with term_type = utf8. You said that you were
> using term_type = 8bit, so I assumed you were overriding the default.

AFAIK, 8bit is the defaults? Atleast on my system, I didn't even knew about
term_type before you telled me to change it. With utf-8 my input works, but I
still se those squares when other people sends stuff and in topic. Is this
behaviour changed in fresh-installed hoary? In that case I'll say we made the
best of it and can close this one.

Nafallo Bjälevik (nafallo) wrote :

(In reply to comment #9)
> (In reply to comment #8)
> > it is working fine for others with term_type = utf8. You said that you were
> > using term_type = 8bit, so I assumed you were overriding the default.
>
> AFAIK, 8bit is the defaults? Atleast on my system, I didn't even knew about
> term_type before you telled me to change it. With utf-8 my input works, but I
> still se those squares when other people sends stuff and in topic. Is this
> behaviour changed in fresh-installed hoary? In that case I'll say we made the
> best of it and can close this one.

Just confirmed with Preview-users on #ubuntu that 8bit is infact the defaults.
This should be utf-8 IMO. Bug still open :-).

Teo Ruiz (teo) wrote :

Doesn't work for me with 0.8.9+0.8.10rc5-0ubuntu3 (breezy, 20050708).

Anyone got it working?

João Cruz (jalrnc) wrote :

I'm experiencing the same with breezy (20051019). Title of #ubuntu-pt and other
user's characters show up as squares. I had no problem with hoary though.

In Dapper (irssi 0.8.10-1ubuntu1), the option has been changed to term_charset, and it appears to be set based on the properties of the terminal that started it.

(with LANG=en_US.UTF-8)
10:46 [lookandfeel]
10:46 term_charset = UTF-8

(with LANG=en_US.ISO8859-1, even though I don't have that locale set up on my machine)
10:48 [lookandfeel]
10:48 term_charset = ANSI_X3.4-1968

The default terminal charset is UTF-8, and irssi will now follow that. This bug appears to be resolved; closing.

Changed in irssi-text:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.