Added Josh's shorten() function

Reporter: time-killer-games  |  Status: open  |  Last Modified: October 06, 2017, 07:22:54 AM

shorten() is basically the opposite of widen() and will be useful for functions and built-in constants that return strings and need UTF-8 encoding support on Windows, such as working_directory and program_directory.
This isn't going to pass Travis unless you sync your fork now because of my changes. Sorry about that but I accidentally renamed the file on enigma-dev/enigma-dev and didn't mean to do it that way. Either way, just follow this step-by-step guide all the way to end and then follow the "push your changes" guide and this should pass Travis:

NOTE: Don't push to enigma-dev/enigma-dev, instead push to time-killer-games/enigma-dev and Travis will automatically retest this PR.

Also, passing Travis is not required for this to be merged because this is Windows, so it only needs to pass AppVeyor, which I haven't merged from #1094 yet. So really, don't worry about ENIGMO playing Catch the Clown right now.

Please sign in to post comments, or you can view this issue on GitHub.