5cccbb5
--- alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/conflict_while_copying_dialog.rb.utf8	2019-10-25 01:20:07.000000000 +0900
5cccbb5
+++ alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/conflict_while_copying_dialog.rb	2020-01-03 16:11:41.543997217 +0900
5cccbb5
@@ -13,9 +13,11 @@ module Alexandria
5cccbb5
       GetText.bindtextdomain(Alexandria::TEXTDOMAIN, charset: "UTF-8")
5cccbb5
 
5cccbb5
       def initialize(parent, library, book)
5cccbb5
+        # Don't know why, however force_encoding seems needed here to
5cccbb5
+        # prevent crash...
5cccbb5
         super(parent,
5cccbb5
               format(_("The book '%s' already exists in '%s'. Would you like " \
5cccbb5
-                "to replace it?"), book.title, library.name),
5cccbb5
+                "to replace it?"), book.title, library.name).dup.map!{|str| str.force_encoding("UTF-8")},
5cccbb5
               Gtk::Stock::DIALOG_QUESTION,
5cccbb5
               [[_("_Skip"), Gtk::ResponseType::CANCEL],
5cccbb5
                [_("_Replace"), Gtk::ResponseType::OK]],
5cccbb5
--- alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/ui_manager.rb.utf8	2019-10-25 01:20:07.000000000 +0900
5cccbb5
+++ alexandria-book-collection-manager-0.7.4/lib/alexandria/ui/ui_manager.rb	2020-01-03 16:14:53.165730869 +0900
5cccbb5
@@ -714,7 +714,9 @@ module Alexandria
5cccbb5
         iter[Columns::TITLE] = book.title
5cccbb5
         title = book.title.sub(REDUCE_TITLE_REGEX, '\1...')
5cccbb5
         iter[Columns::TITLE_REDUCED] = title
5cccbb5
-        iter[Columns::AUTHORS] = book.authors.join(", ")
5cccbb5
+        # Don't know why, however force_encoding seems needed here to
5cccbb5
+        # prevent crash...
5cccbb5
+        iter[Columns::AUTHORS] = book.authors.dup.map!{|str| str.force_encoding("UTF-8")}.join(", ")
5cccbb5
         iter[Columns::ISBN] = book.isbn.to_s
5cccbb5
         iter[Columns::PUBLISHER] = book.publisher
5cccbb5
         iter[Columns::PUBLISH_DATE] = book.publishing_year.to_s