From 558ee6c2596b0c17f74333d2a36b275724b6d82c Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Fri, 11 May 2018 22:55:56 +0200 Subject: [PATCH] Add chcp 65001 advice --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index b7cd10e..5110c6b 100644 --- a/index.html +++ b/index.html @@ -461,7 +461,9 @@ but this will cause an error:
python main.py --bom myscript.lsl | clip
 
-

to copy the optimized output to the clipboard. Under OS X, pbcopy does the same as xclip and clip.

+

to copy the optimized output to the clipboard. Under OS X, pbcopy does the same as xclip and clip.

+ +

The clip application does not recognize the byte order mark, therefore Windows users may need to execute chcp 65001 before using the optimizer, to switch their console to UTF-8 and make the clip program work.

An external preprocessor is supported. If your system has a GNU C Compiler suite already installed, then the cpp that comes with it (or gcc adding the -E option) should be enough. If you don't have it, the recommended preprocessor is mcpp, because it's a standalone executable, easy to install. Download it from http://mcpp.sourceforge.net/download.html, unpack the executable somewhere in the system path (or specify the path to the executable every time with the --precmd option of the program) and you're ready to go.