-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from secretGeek/ps-coop
Implements issue #13
- Loading branch information
Showing
4 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
# Control what python to use | ||
_OK__PATH_TO_PYTHON=$(command -v python) # set python2 | ||
_OK__PATH_TO_PYTHON=$(command -v python3) # set python3 | ||
unset _OK__PATH_TO_PYTHON #test if this works too | ||
echo "Path to python: '$_OK__PATH_TO_PYTHON'" # check path | ||
$_OK__PATH_TO_PYTHON --version # check python version | ||
# Control encoding or not | ||
echo "Python IO Encoding: ${PYTHONIOENCODING:--=not-set=-}" | ||
export PYTHONIOENCODING="UTF-8" # only python3 will choke on non-UTF-8, when this is set | ||
unset PYTHONIOENCODING # nonetheless, python will treat everything as ASCII | ||
# Go to the test cases | ||
cd iso_latin_1 | ||
cd mac_os_roman | ||
cd utf_8 | ||
# This `.ok` file should not be shown | ||
# because `.ok-sh` should be used. | ||
# `.ok-sh` takes precedence over `.ok` when both exists | ||
cat .ok | ||
cat .ok-sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Control what python to use | ||
_OK__PATH_TO_PYTHON=$(command -v python) # set python2 | ||
_OK__PATH_TO_PYTHON=$(command -v python3) # set python3 | ||
unset _OK__PATH_TO_PYTHON #test if this works too | ||
echo "Path to python: '$_OK__PATH_TO_PYTHON'" # check path | ||
$_OK__PATH_TO_PYTHON --version # check python version | ||
# Control encoding or not | ||
echo "Python IO Encoding: ${PYTHONIOENCODING:--=not-set=-}" | ||
export PYTHONIOENCODING="UTF-8" # only python3 will choke on non-UTF-8, when this is set | ||
unset PYTHONIOENCODING # nonetheless, python will treat everything as ASCII | ||
# Go to the test cases | ||
cd iso_latin_1 | ||
cd mac_os_roman | ||
cd utf_8 |
File renamed without changes.