player: support guessing encodings for comments
commit702e3ad47738363ab847f43155e047c7c6612f80
authorEric Wong <e@80x24.org>
Mon, 29 Jan 2018 00:43:45 +0000 (29 00:43 +0000)
committerEric Wong <e@80x24.org>
Mon, 29 Jan 2018 01:03:10 +0000 (29 01:03 +0000)
treeebb374f3a591e06461f55da92dc89e0375497460
parent982105d44feeed91178a1b7331172fae6f797d92
player: support guessing encodings for comments

This can be helpful for end users and is close to what other
players use.  We can fallback to Encoding.default_external by
default (typically UTF-8) and then again using `charlock_holmes'
if installed.

Note: path names remain binary, because that's how proper
filesystems operate.
lib/dtas.rb
lib/dtas/encoding.rb [new file with mode: 0644]
lib/dtas/source/sox.rb
test/test_encoding.rb [new file with mode: 0644]