Blame alexandria-0.7.4-iconview-multibyte.patch
|
|
5cccbb5 |
--- alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/ui_manager.rb.icon_multibyte 2020-01-03 16:17:05.051552867 +0900
|
|
|
5cccbb5 |
+++ alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/ui_manager.rb 2020-01-03 16:41:08.841182941 +0900
|
|
|
5cccbb5 |
@@ -713,6 +713,9 @@
|
|
TASAKA Mamoru |
0472321 |
iter[Columns::IDENT] = book.ident.to_s
|
|
TASAKA Mamoru |
0472321 |
iter[Columns::TITLE] = book.title
|
|
TASAKA Mamoru |
0472321 |
title = book.title.sub(REDUCE_TITLE_REGEX, '\1...')
|
|
TASAKA Mamoru |
0472321 |
+ # More nice method is needed here...
|
|
TASAKA Mamoru |
0472321 |
+ title = title.encode("UTF-16", "UTF-8", :invalid => :replace, :undef => :replace, :replace => ".")
|
|
TASAKA Mamoru |
0472321 |
+ title = title.encode("UTF-8")
|
|
TASAKA Mamoru |
0472321 |
iter[Columns::TITLE_REDUCED] = title
|
|
TASAKA Mamoru |
0472321 |
# Don't know why, however force_encoding seems needed here to
|
|
TASAKA Mamoru |
0472321 |
# prevent crash...
|