rin.bat, run2.bat, rnotetools.ring, ringrepl.ring の cmd.exe コードページ変更 (cp932 ではなく UTF-8 65001)
--- /dev/null
+MIT License
+
+Copyright (c) 2016-2020 Mahmoud Fayed
+Copyright (c) 2017-2020 isVowel / Japan Ring Team
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
--- /dev/null
+set path=%cd%\bin;%path%
+cls
+chcp 65001
+cmd.exe
# Application : Read-Eval-Print-Loop (REPL) - Console Application
# 原作者 : Mahmoud Fayed <msfclipper@yahoo.com>
-See "The Ring programming language version " + version() + nl
-See "REPL (Read-Eval-Print-Loop)" + nl
+system("chcp 65001>nul")
+See "プログラミング言語 Ring version " + version() + nl
+See "REPL (対話型評価環境)" + nl
while true
see nl + "ring:> "
give cCode
echo off
cls
+REM Changes codepage
+chcp 65001
REM Get the Current path for the Ring Executable
set RINGEXEPATH=%cd%
REM Change the current directory to the application folder
cd /d %~dp1
REM Execute the program
-"%RINGEXEPATH%/ring.exe" %1
+"%RINGEXEPATH%\ring.exe" %1
Pause>nul
exit
echo off
cls
+REM Changes codepage
+chcp 65001
REM Get the Current path for the Ring Executable
set RINGEXEPATH=%cd%
REM Change the current directory to the application folder
cd /d %~dp1
REM Execute the program
-"%RINGEXEPATH%/ring.exe" %1
+"%RINGEXEPATH%\ring.exe" %1
exit
func OSTerminal
if isWindows()
- cCommand = 'start cmd /K "cd ' + cStartupFolder + '"'
+ cCommand = 'start cmd /K "chcp 65001 & cd ' + cStartupFolder + '"'
but isLinux()
cCommand = "gnome-terminal"
but isMacosx()
MIT License
-Copyright (c) 2016-2019 Mahmoud Fayed
-Copyright (c) 2017-2019 isVowel / Japan Ring Team
+Copyright (c) 2016-2020 Mahmoud Fayed
+Copyright (c) 2017-2020 isVowel / Japan Ring Team
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
(8) PDF ファイルを作成するには、 Lyx (https://www.lyx.org/Download) と MiKTEX (https://miktex.org/download) を使用します
-(9) PDF ファイルを作成するには、 buildepub.bat を実行します。
+(9) ePUB ファイルを作成するには、 buildepub.bat を実行します。
Windows XP 以降でのビルド方法は下記のサイトを参照してください。
https://osdn.net/projects/ring-lang-081/wiki/2019%2F02%2FDocuments-081#h1-2018.E5.B9.B405.E6.9C.8827.E6.97.A5.28.E5.9C.9F.29
stdlibcore.ring (StdLib 関数) も使えます (クラスはありません)。
-stdlib.ring (関数とクラス) はは RingLibCurl, RingOpenSSL などのライブラリを読み込むため、スタンドアローン型のコンソールアプリケーションの作成時は好都合です。
+stdlib.ring (関数とクラス) は RingLibCurl, RingOpenSSL などのライブラリを読み込むため、スタンドアローン型のコンソールアプリケーションの作成時は好都合です。
.. index::
pair: Stdlib 関数; puts()