Skip to content

Commit 089bbdf

Browse files
authored
Fix timestamp parsing in certain locales (#14)
1 parent 68d6f80 commit 089bbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ sub_conv() {
374374
}
375375

376376
parse_speech_fragments() {
377-
awk -F' --> ' -vPADDING="$padding" -vSRT_TIMING_PATTERN="$srt_timing_pattern" '
377+
LC_NUMERIC=C awk -F' --> ' -vPADDING="$padding" -vSRT_TIMING_PATTERN="$srt_timing_pattern" '
378378
function time_parts_to_seconds(hours, mins, secs) {
379379
return hours * 3600.0 + mins * 60.0 + secs
380380
}

0 commit comments

Comments
 (0)