forked from mia/Aegisub
Fix overriding charset for subtitle files
IconvWrapper needs the non-lowercased charset for the pretty -> real name mapping to work.
This commit is contained in:
parent
6f79d8731f
commit
822c596206
1 changed files with 1 additions and 2 deletions
|
@ -71,8 +71,7 @@ public:
|
|||
, lf('\n')
|
||||
, width(1)
|
||||
{
|
||||
boost::to_lower(encoding);
|
||||
if (encoding != "utf-8") {
|
||||
if (boost::to_lower_copy(encoding) != "utf-8") {
|
||||
agi::charset::IconvWrapper c("utf-8", encoding.c_str());
|
||||
c.Convert("\r", 1, reinterpret_cast<char *>(&cr), sizeof(int));
|
||||
c.Convert("\n", 1, reinterpret_cast<char *>(&lf), sizeof(int));
|
||||
|
|
Loading…
Reference in a new issue