You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In mofile.rb, MAGIC_LITTLE/BIG_ENDIAN is declared as a string, UTF-8 on my system, yet the .mo is opened as a binary, i.e: ASCII-8BIT, so the magic check in load_from_stream() fails.
Since the file encoding is correct, shouldn't we use force_encoding("ASCII-8BIT") on the MAGIC strings?
Apologies if I've missed something obvious but this encoding stuff is a PITA.
The text was updated successfully, but these errors were encountered:
GetText::MOFile::InvalidFormat: Unknown signature "\xDE\x12\x04\x95"
In mofile.rb, MAGIC_LITTLE/BIG_ENDIAN is declared as a string, UTF-8 on my system, yet the .mo is opened as a binary, i.e: ASCII-8BIT, so the magic check in load_from_stream() fails.
Since the file encoding is correct, shouldn't we use force_encoding("ASCII-8BIT") on the MAGIC strings?
Apologies if I've missed something obvious but this encoding stuff is a PITA.
The text was updated successfully, but these errors were encountered: