[ditz-talk] [PATCH] fix incorrect unicode output on default prompt
Daniel Kalør
daniel at kalor.dk
Mon Nov 3 06:18:58 EST 2008
With .inspect it makes my name look like "Daniel Kal\303\270r" when
prompting for issue creator.
---
lib/ditz/lowline.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/ditz/lowline.rb b/lib/ditz/lowline.rb
index 0e332b0..ff7b752 100644
--- a/lib/ditz/lowline.rb
+++ b/lib/ditz/lowline.rb
@@ -86,7 +86,7 @@ module Lowline
default_s = case opts[:default]
when nil; nil
when ""; " (enter for none)"
- else; " (enter for #{opts[:default].inspect})"
+ else; " (enter for #{opts[:default].to_s})"
end
tail = case q
--
1.6.0.3
More information about the ditz-talk
mailing list