Selected encoding not taken into account when saving

Bug #2050850 reported by Guillaume Pothier
10
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 6.6.0-14.14-generic 6.6.3
Uname: Linux 6.6.0-14-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: unknown
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)

Revision history for this message
Guillaume Pothier (gpothier-caligrafix) wrote :
summary: - Selected encoding not taken into account
+ Selected encoding not taken into account when saving
Revision history for this message
Cristiano Fraga G. Nunes (cfgnunes) wrote :

Same problem here. I confirm this bug.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-text-editor (Ubuntu):
status: New → Confirmed
Revision history for this message
Cristiano Fraga G. Nunes (cfgnunes) wrote (last edit ):

There are additional bugs present in this version of GNOME Text Editor, including:
https://bugs.launchpad.net/ubuntu/+source/gnome-text-editor/+bug/2064024
https://bugs.launchpad.net/ubuntu/+source/gnome-text-editor/+bug/2064025

A viable solution could be for the Canonical staff to update the package to the latest version, as these bugs have been addressed in the most recent upstream release.

Revision history for this message
Cristiano Fraga G. Nunes (cfgnunes) wrote :

I have created the upstream bug tracker:

https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/669

Revision history for this message
Cristiano Fraga G. Nunes (cfgnunes) wrote :
Changed in gnome-text-editor (Ubuntu):
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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