Bug 2395207 - Screen 5.0.1 display garbled code under defencoding eucJP
Summary: Screen 5.0.1 display garbled code under defencoding eucJP
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: screen
Version: 44
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Josef Ridky
QA Contact: Fedora Extras Quality Assurance
URL: https://savannah.gnu.org/bugs/?66614
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-15 13:33 UTC by Tsukahara Ken
Modified: 2026-05-12 07:31 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tsukahara Ken 2025-09-15 13:33:20 UTC
I use screen to convert eucJP encoding to UTF8 for terminal I/O.
It works fine with RHEL 7 and Fedora 40, but it does not with Fedora 42.
  screen 4.1.0 (RHEL 7): OK
  screen 4.9.1 (Fedora 40): OK
  screen 5.0.1 (Fedora 42): NG

I found a similar report and discussion in upstream GNU site.
https://savannah.gnu.org/bugs/?66614
See URL above (Comment #16 is mine).


Reproducible: Always

Steps to Reproduce:
1. Prepare the files to be used
   $ export LANG=ja_JP.UTF-8
   $ echo "defencoding eucJP" >/tmp/screenrc-eucjp
   $ echo "あたらしい朝が来た 希望の朝だ" > /tmp/SAMPLE_UTF8.txt
   $ iconv -f UTF8 -t EUCJP /tmp/SAMPLE_UTF8.txt > /tmp/SAMPLE_EUCJP.txt

2. Run screen command
   $ screen -T vt100 -c /tmp/screenrc-eucjp

3. Do following in screen prompt
   $ export LANG=ja_JP.eucJP
   $ date
   $ cat /tmp/SAMPLE_EUCJP.txt

Actual Results:
$ export LANG=ja_JP.eucJP
$ date
2025t￿  9±￿ 15å￿ ±￿Ü￿å￿ 22:18:25 JST
$ cat /tmp/SAMPLE_EUCJP.txt
B￿_￿	￿W￿D￿≠￿L￿e￿_￿ ┐￿≥￿n￿≠￿`￿


Expected Results:
$ export LANG=ja_JP.eucJP
$ date
2025年  9月 15日 月曜日 22:18:25 JST
$ cat /tmp/SAMPLE_EUCJP.txt
あたらしい朝が来た 希望の朝だ


Additional Information:
This issue seems to be fixed by applying following patch.

https://github.com/termux/termux-packages/blob/943b2e86904abb6afd803c463d276af8fad26a24/packages/screen/issue-22688.patch

Comment 1 Fedora Release Engineering 2026-05-06 14:06:36 UTC
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '42'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 42 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 2 Jens Petersen 2026-05-07 06:47:12 UTC
I presume this still affects F44+?

Can we apply https://github.com/termux/termux-packages/pull/23096 in fedora for this?

Comment 3 Jens Petersen 2026-05-07 06:47:44 UTC
I am happy to create a PR for rawhide if it helps

Comment 4 Jens Petersen 2026-05-07 06:50:00 UTC
Does tmux behave better btw?  (I general I prefer just to use tmux these days)

Comment 5 Tsukahara Ken 2026-05-12 03:45:03 UTC
I'm experiencing the exact same problem with Fedora 44, so I've updated the target version to 44. Are there any maintainers (from Japan, Korea, or China) who are aware of this issue?

Comment 6 Tsukahara Ken 2026-05-12 03:46:26 UTC
I'm experiencing the exact same problem with Fedora 44, so I've updated the target version to 44. Are there any maintainers (from Japan, Korea, or China) who are aware of this issue?

Comment 7 Jens Petersen 2026-05-12 07:31:12 UTC
Thank you - that is good.

Any chance you could try tmux?
(the keybindings are a bit different: biggest difference is Ctrl-b instead Ctrl-a)


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