mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
File encoding pre-view now removes binary zeros (so the rest of the subtitle after a binary zero is shown)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@319 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
c3b853e91a
commit
049ef058a2
@ -88,6 +88,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
_fileBuffer = new byte[length];
|
||||
file.Read(_fileBuffer, 0, length);
|
||||
|
||||
for (int i = 0; i < length; i++)
|
||||
{
|
||||
if (_fileBuffer[i] == 0)
|
||||
_fileBuffer[i] = 32;
|
||||
}
|
||||
|
||||
file.Close();
|
||||
file.Dispose();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user