File: 08_fix_bins-edit-gui_encoding

package info (click to toggle)
bins 1.1.29-16
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 5,836 kB
  • ctags: 2,351
  • sloc: perl: 5,161; xml: 2,536; sh: 314; makefile: 177
file content (20 lines) | stat: -rw-r--r-- 644 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Ludovic Rousseau <rousseau@debian.org>
Description: bins-edit-gui mishandles locale settings
Bug-Debian: http://bugs.debian.org/322938
Bug-Debian: http://bugs.debian.org/334052

--- 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";
 }