Selected encoding not taken into account when saving
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-text-editor (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
The file is saved in utf-8 even though I select iso-8859-1 as encoding when saving.
Steps to reproduce:
1. Create a new file with non-ascii content, eg.: "çéè" (without quotes)
2. In the save dialog, select iso-8859-1 encoding
2. Check file size: it should be 3 bytes, but it is 7. Hexdump:
00000000 c3 a7 c3 a9 c3 a8 0a |.......|
00000007
For instance, c3 a7 is the utf-8 encoding of "ç". The iso-8859-1 encoding of this char is the single byte e7.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-text-editor 45.1-1build1
ProcVersionSign
Uname: Linux 6.6.0-14-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: GNOME
Date: Tue Jan 23 00:30:01 2024
InstallationDate: Installed on 2018-12-14 (1866 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
SourcePackage: gnome-text-editor
UpgradeStatus: Upgraded to noble on 2023-11-07 (76 days ago)
Same problem here. I confirm this bug.