Added Josh's shorten() function

Reporter: time-killer-games  |  Status: closed  |  Last Modified: January 17, 2018, 03:47:36 PM

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.


I'll just close this, for now. We can copy this function out (or I can rewrite it) when we go to implement UTF-8 support in our Windows functions.

Notice: Undefined variable: context in /var/www/html/ on line 114
Please sign in to post comments, or you can view this issue on GitHub.