Commit 6a447a03d3c6f0947a8e37ba7736c3fb2a0a8ea3

Authored by Wesnydy Ribeiro
1 parent bca4fd48
Exists in master and in 1 other branch devel

altera comando de conversão de endline

extrator/src/extratorSRT.cpp
@@ -39,7 +39,7 @@ void ExtratorSRT::encodingfiletoUTF8() { @@ -39,7 +39,7 @@ void ExtratorSRT::encodingfiletoUTF8() {
39 .append(this->filePath); 39 .append(this->filePath);
40 system(recmd.c_str()); 40 system(recmd.c_str());
41 41
42 - string sedcmd = "sed -i 's/.$//' "; 42 + string sedcmd = "sed -i $'s/\r$//' ";
43 sedcmd.append(this->filePath); 43 sedcmd.append(this->filePath);
44 system(sedcmd.c_str()); 44 system(sedcmd.c_str());
45 45
extrator/src/extratorTXT.cpp
@@ -50,7 +50,7 @@ void ExtratorTXT::encodingfiletoUTF8() { @@ -50,7 +50,7 @@ void ExtratorTXT::encodingfiletoUTF8() {
50 .append(this->filePath); 50 .append(this->filePath);
51 system(recmd.c_str()); 51 system(recmd.c_str());
52 52
53 - string sedcmd = "sed -i 's/.$//' "; 53 + string sedcmd = "sed -i $'s/\r$//' ";
54 sedcmd.append(this->filePath); 54 sedcmd.append(this->filePath);
55 system(sedcmd.c_str()); 55 system(sedcmd.c_str());
56 } 56 }
extrator/src/extratorVTT.cpp
@@ -39,7 +39,7 @@ void ExtratorVTT::encodingfiletoUTF8() { @@ -39,7 +39,7 @@ void ExtratorVTT::encodingfiletoUTF8() {
39 .append(this->filePath); 39 .append(this->filePath);
40 system(recmd.c_str()); 40 system(recmd.c_str());
41 41
42 - string sedcmd = "sed -i 's/.$//' "; 42 + string sedcmd = "sed -i $'s/\r$//' ";
43 sedcmd.append(this->filePath); 43 sedcmd.append(this->filePath);
44 system(sedcmd.c_str()); 44 system(sedcmd.c_str());
45 } 45 }