[Bug 1006510] Font management module can't launch properly under certain language environment.
http://bugzilla.suse.com/show_bug.cgi?id=1006510 http://bugzilla.suse.com/show_bug.cgi?id=1006510#c18 --- Comment #18 from Petr Gajdos <pgajdos@suse.com> --- (In reply to Fuminobu Takeyama from comment #17)
Since now Ruby keeps encoding with string object. As the default encoding to read a file is ASCII-8BIT, the code reading family name from fontconfig maybe push the family name into a Ruby string object in ASCII-8BIT. At that time, the byte array of the string is the same with the appropriate string object. So force_encoding works fine.
Is it the only place that needs force_encoding?
Hard to say when I do not know the exact cause; other parts seem not to have a problem with family strings (we take family strings only from the fontconfig). So I guess the problem is there only when strings are connected via gettext (big question mark here, but see comment 0). And question is what happens when .force_encoding("utf-8") is applied on non utf-8 string (I had not verify we have such font). -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com