summaryrefslogtreecommitdiff
path: root/biology/py-multiqc/files/patch-multiqc_multiqc.py
blob: 755a01a5fba409d5026ee354c509d89921d01f82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- multiqc/multiqc.py.orig	2024-11-12 20:25:32 UTC
+++ multiqc/multiqc.py
@@ -13,6 +13,13 @@ import rich_click as click
 from typing import Optional, Tuple
 
 import rich_click as click
+if 'LC_ALL' in os.environ and 'LANG' in os.environ:
+    import rich_click as click
+else:
+    print('multiqc: LC_ALL and LANG must be set to a UTF-8 character set')
+    print('in your environment in order for the click module to function.')
+    print('E.g. export LC_ALL=en_US.UTF-8 or setenv LC_ALL en_US.UTF-8')
+    sys.exit()
 
 from multiqc import config, report, validation
 from multiqc.core import log_and_rich, plugin_hooks