[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #66287] help preconv guess the correct encoding of shipped file
From: |
G. Branden Robinson |
Subject: |
Re: [bug #66287] help preconv guess the correct encoding of shipped files |
Date: |
Fri, 4 Oct 2024 06:12:30 -0500 |
At 2024-10-04T06:00:01-0500, G. Branden Robinson wrote:
> This is fine if it doesn't fool Emacs into ignoring the local variables
> at the end of the file and making the overall file editing experience
> _worse_ for people who _do_ have uchardet installed.
>
> I reckon I'll test that.
This seems not to be a problem. I hacked up one of the files thusly.
$ git diff
diff --git a/contrib/mm/groff_mmse.7.man b/contrib/mm/groff_mmse.7.man
index 02c5600a1..10d0c598c 100644
--- a/contrib/mm/groff_mmse.7.man
+++ b/contrib/mm/groff_mmse.7.man
@@ -1,3 +1,4 @@
+.\" -*- coding: latin-1 -*-
.TH groff_mmse @MAN7EXT@ "@MDATE@" "groff @VERSION@"
.SH Namn
groff_mmse \- svenska \(rqmemorandum\(rq makro f\(:or GNU
@@ -181,8 +182,8 @@ .SH Filer
.
.
.\" Local Variables:
-.\" coding: latin-1
-.\" fill-column: 72
+.\" coding: utf-8
+.\" fill-column: 60
.\" mode: nroff
.\" End:
.\" vim: set filetype=groff textwidth=72:
GNU Emacs:
* Honored the 'coding:' at the top of the file.
* Didn't honor the incorrect 'coding:' at the end of the file (which
would have produced obvious mojibake in Jörgen's name).
* Honored the deliberately "damaged" 'fill-column:'.
There seems to be no barrier to the change you propose, unless just up
and recoding the files as UTF-8 in the source tree is superior in every
respect.
Getting Eloi Montañés's name to show up correctly in our NEWS file would
be a good bird to get stoned at the same time.
> {savane: user = 108747; tracker = bugs; item = 66287}
signature.asc
Description: PGP signature