Bug 914: Don't let UTF-8 I/O affect internal representations.
commit45d1750d030d6fead6838b41b34b3644d3b00753
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 20 May 2007 12:31:02 +0000 (20 15:31 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 20 May 2007 12:31:02 +0000 (20 15:31 +0300)
tree6174b3d93c23e5baf826f93aa220c045ec8ac4ce
parent36287949a0b62297ce3b785a0fb083792cb91079
Bug 914: Don't let UTF-8 I/O affect internal representations.

Use it for the actual I/O only.  Previously, defining CONFIG_UTF8 and
enabling UTF-8 used to force many strings to the UTF-8 charset
regardless of the terminal charset option.  Now, those strings always
follow the terminal charset.  This fixes bug 914 which was caused
because _() returned strings in the terminal charset and functions
then assumed they were in UTF-8.  This reduction in the effects of
UTF-8 I/O may also simplify future testing.
24 files changed:
src/bfu/button.c
src/bfu/dialog.c
src/bfu/group.c
src/bfu/inpfield.c
src/bfu/listbox.c
src/bfu/menu.c
src/bfu/text.c
src/bfu/widget.h
src/dialogs/download.c
src/dialogs/menu.c
src/dialogs/status.c
src/document/forms.h
src/protocol/bittorrent/dialogs.c
src/session/download.c
src/session/session.c
src/terminal/draw.c
src/terminal/draw.h
src/terminal/event.c
src/terminal/screen.c
src/terminal/terminal.h
src/viewer/text/form.c
src/viewer/text/form.h
src/viewer/text/link.c
src/viewer/text/textarea.c