Package: ticgit
Version: 1.0.2.9-1
Severity: normal

*** Please type your report below this line ***

ticgit-ng/cli.rb is blindly outputting characters that don't work on
all terminals
sub_value = "#{value[0, size - 1]}\xe2\x80\xa6"
replace it with a single character that does,
sub_value = "#{value[0, size - 1]}+"
If it's going to use the UTF-8 escape sequence it needs to first check
$LANG or something to verify UTF-8 is supported otherwise it shows up
as garbage.


--- /tmp/cli.rb 2011-11-03 10:08:08.927671832 -0500
+++ /usr/lib/ruby/vendor_ruby/ticgit-ng/cli.rb  2011-11-03 10:06:04.431915459 
-0500
@@ -201,7 +201,7 @@ module TicGitNG
         value = value.to_s
 
         if value.bytesize > size
-          sub_value = "#{value[0, size - 1]}\xe2\x80\xa6"
+          sub_value = "#{value[0, size - 1]}+"
         else
           sub_value = value[0, size]
         end
@@ -213,7 +213,7 @@ module TicGitNG
         chars = value.to_s.scan(/./um)
 
         if chars.size > size
-          sub_value = "#{chars[0, size-1]}\xe2\x80\xa6"
+          sub_value = "#{chars[0, size-1]}+"
         else
           sub_value = chars.join
         end

-- System Information:
Debian Release: 6.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/dash

Versions of packages ticgit depends on:
ii  ruby-git                     1.2.5-2     Ruby interface to the Git revision
ii  ruby1.8                      1.8.7.302-2 Interpreter of object-oriented scr

Versions of packages ticgit recommends:
ii  git [git-core]             1:1.7.2.3-2.2 fast, scalable, distributed revisi
ii  git-core                   1:1.7.2.3-2.2 fast, scalable, distributed revisi

Versions of packages ticgit suggests:
pn  ticgitweb                     <none>     (no description available)

-- no debconf information




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to