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

Commit 9370ee1

Browse files
committed
Merge pull request #964 from sespivak/develop
fix preview with unoconv of files with russian names
2 parents 62e8145 + b1a0e4f commit 9370ee1

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
@@ -281,6 +281,7 @@ public function generateJpegsCallback($masterFile, $targetFile)
281281
} else {
282282
$unoconv = "HOME=/tmp ".$unoconv." --stdout -f pdf ".escapeshellarg($masterFile)." > ".escapeshellarg(basename($unoDoc));
283283
}
284+
putenv('LC_CTYPE='.AJXP_LOCALE);
284285
exec($unoconv, $out, $return);
285286
}
286287
if (is_file($unoDoc)) {

0 commit comments

Comments
 (0)