view debian/patches/08_fix_bins-edit-gui_encoding @ 6:3021deef1599

Encoding related fixes * chomp encoding string * reformat else (seems someone hacked it in) * debug print encoding * do not use :utf8 binmode ("re-encode") on written file if the input is _already_ UTF-8
author Peter Gervai <grin@grin.hu>
date Thu, 16 Oct 2008 00:02:14 +0200
parents c5749e43b1d7
children
line wrap: on
line source

#! /bin/sh /usr/share/dpatch/dpatch-run
## 08_fix_bins-edit-gui_encoding.dpatch by  <rousseau@acer.maison.bogus>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
--- bins-1.1.29.orig/bins-edit-gui
+++ bins-1.1.29/bins-edit-gui
@@ -121,10 +121,10 @@
 # Solaris refers to ISO 646 as "646" but that is not a valid codeset
 if (!$@ && $codeset && $codeset ne "ANSI_X3.4-1968" && $codeset ne "646") {
   $localEncoding = $codeset;
-  print "Forcing encoding to $codeset";
+  print "Forcing encoding to $codeset\n";
 }
 
-chop($localEncoding);
+chomp($localEncoding);
 if (! $localEncoding) {
   $localEncoding = "LATIN1";
 }