Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-makloufi committed Oct 28, 2022
1 parent 095201a commit 353570f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project/Sources/Methods/getFileInfo.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ C_LONGINT:C283($pos; $longTrouvee)
C_COLLECTION:C1488($lineCol)

$file:=$1
$docStr:=Document to text:C1236($file.path)
$docStr:=Document to text:C1236($file.path; "UTF-16")

$pos:=Position:C15(Choose:C955(Is Windows:C1573; "\r\n"; "\r"); $docStr; 0; $longTrouvee)
$line:=Substring:C12($docStr; 0; $pos)
Expand Down
3 changes: 2 additions & 1 deletion Project/Sources/Methods/getFileLogLines.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ $num:=$4

$alerted:=False:C215
$i:=0
$logFileTab:=Split string:C1554(Document to text:C1236($logFile); $carriageReturn)
$logFileTab:=Split string:C1554(Document to text:C1236($logFile; "UTF-16"); $carriageReturn)
For each ($logLine; $logFileTab)

ALERT:C41($logLine)
If (Not:C34(Bool:C1537($i%1000)))
Use ($endLog)
$endLog["prog"+$num]:=$i/$logFileTab.length
Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Methods/getLastSeq.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ C_COLLECTION:C1488($col; $line)
C_LONGINT:C283($0)

$file:=$1
$col:=Split string:C1554(Document to text:C1236($file); Choose:C955(Is Windows:C1573; "\r\n"; "\r"))
$col:=Split string:C1554(Document to text:C1236($file; "UTF-16"); Choose:C955(Is Windows:C1573; "\r\n"; "\r"))

If ($col[$col.length-1]="")
$line:=Split string:C1554($col[$col.length-2]; Char:C90(Tab:K15:37))
Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Methods/getLastTime.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ C_COLLECTION:C1488($col; $line)
C_TEXT:C284($0)

$file:=$1
$col:=Split string:C1554(Document to text:C1236($file); Choose:C955(Is Windows:C1573; "\r\n"; "\r"))
$col:=Split string:C1554(Document to text:C1236($file; "UTF-16"); Choose:C955(Is Windows:C1573; "\r\n"; "\r"))
If ($col[$col.length-1]="")
$line:=Split string:C1554($col[$col.length-2]; Char:C90(Tab:K15:37))
Else
Expand Down
2 changes: 1 addition & 1 deletion Project/Sources/Methods/getlastOp.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ For each ($tmpFile; $logPath)
End case
End for each

$docStr:=Document to text:C1236($file.path)
$docStr:=Document to text:C1236($file.path; "UTF-16")
$lastLine:=getLastLine(->$docStr)
$lastLineCol:=Split string:C1554($lastLine; Char:C90(Tab:K15:37))

Expand Down

0 comments on commit 353570f

Please sign in to comment.