mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
"Correct filenames": utf8 support
This commit is contained in:
@@ -823,19 +823,17 @@ namespace JDP
|
||||
{
|
||||
if (toolStripButtonCorrectorOverwrite.Checked)
|
||||
{
|
||||
using (StreamWriter sw = new StreamWriter(pathIn, false, CUESheet.Encoding))
|
||||
sw.Write(fixedCue);
|
||||
CUESheet.WriteText(pathIn, fixedCue);
|
||||
BatchLog("corrected ({0}).", pathIn, extension);
|
||||
}
|
||||
else
|
||||
{
|
||||
string pathFixed = Path.ChangeExtension(pathIn, extension + ".cue");
|
||||
if (File.Exists(pathFixed))
|
||||
string fixedPath = Path.ChangeExtension(pathIn, extension + ".cue");
|
||||
if (File.Exists(fixedPath))
|
||||
BatchLog("corrected cue already exists.", pathIn);
|
||||
else
|
||||
{
|
||||
using (StreamWriter sw = new StreamWriter(pathFixed, false, CUESheet.Encoding))
|
||||
sw.Write(fixedCue);
|
||||
CUESheet.WriteText(fixedPath, fixedCue);
|
||||
BatchLog("corrected ({0}).", pathIn, extension);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user