Bug#1009099: /usr/share/applications/gnome-breakout.desktop uses legacy encoding
Trent W. Buck
trentbuck at gmail.com
Thu Apr 7 10:01:36 BST 2022
Package: gnome-breakout
Version: 0.5.3-7
Severity: minor
The gnome-breakout.desktop file is encoded in ISO-8859-1. It should be UTF-8.
This causes problems when reading the file:
root at desktop:~# python3 -c "import configparser; app = configparser.RawConfigParser(); app.read('/usr/share/applications/gnome-breakout.desktop')"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.9/configparser.py", line 697, in read
self._read(fp, filename)
File "/usr/lib/python3.9/configparser.py", line 1017, in _read
for lineno, line in enumerate(fp, start=1):
File "/usr/lib/python3.9/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 177: invalid continuation byte
root at desktop:~# iconv --from iso-8859-1 /usr/share/applications/gnome-breakout.desktop
[Desktop Entry]
Name=GNOME Breakout
Name[tr]=Gnome Breakout
Name[de]=GNOME Breakout
Comment=Play a clone of the classic arcade game Breakout for GNOME
Comment[tr]=Breakout klasiðinin Gnome teþkili
Comment[de]=Das klassische Arcade Spiel Breakout für GNOME
Exec=gnome-breakout
Icon=gnome-breakout.png
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
-- System Information:
Debian Release: 11.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 5.14.0-0.bpo.2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the Pkg-games-devel
mailing list