Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit b1a0e4f

Browse files
committed
fix preview with unoconv of files with russian names
1 parent 73cb845 commit b1a0e4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/plugins/editor.imagick/class.IMagickPreviewer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ public function generateJpegsCallback($masterFile, $targetFile)
282282
} else {
283283
$unoconv = "HOME=/tmp ".$unoconv." --stdout -f pdf ".escapeshellarg($masterFile)." > ".escapeshellarg(basename($unoDoc));
284284
}
285+
putenv('LC_CTYPE='.AJXP_LOCALE);
285286
exec($unoconv, $out, $return);
286287
}
287288
if (is_file($unoDoc)) {

0 commit comments

Comments
 (0)