-
-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Got this on docs@, won't publish it there, but coping/pasting here becaues it may be of interest:
errnoのエラー・メッセージの相違に付いて
超初心者の私が初めて投稿するので、ここで良いのかも分かりません。
違っていましたら、お手数をお掛けしますが、消去しただければ、幸いです。システムのエラー・メッセージとインストールされた「python
Documentation」、「errno.h」と「errno(3)」のエラー・メッセージに相違が見られます。
詳細は、添付ファイルを解凍して確認してください。「errnoの設定値確認.tar.xz」展開後は「errno-python.txt」と「errnoの設定値確認.pdf」です。(ハイブリッドpdf)
pdfの使用文字は「TakaoPGothic」と「TakaoPMincho」ですので、インストールしていれば良いのですが!。
ubuntu 18.04 LTSには初期インストールがされていませんでした。確認対象ファイル
システムのエラー・メッセージ
python Documentation Python 2.7.17
英語版 : Python » English 2.7.17 Documentation » The Python Standard
Library »
15. Generic Operating System Services » 15.16. errno —
Standard errno system symbols
https://docs.python.org/2.7/library/errno.html?highlight=errno#module-errno
日本語版 : Python » Japanese 2.7.17 ドキュメント » Python 標準ライブラリ
»
15. 汎用オペレーティングシステムサービス » 15.16. errno ---
標準の errno システムシンボル
https://docs.python.org/ja/2.7/library/errno.html?highlight=errno#module-errno
errno.h /usr/include/asm-generic/errno-base.hと
/usr/include/asm-generic/errno.h
errno(3) 4.15いろんな環境でLinuxが使用されているようなので、「errno(3)」が違っているのは仕方ないとして、
インストールされた「python
Documentation」、「errno.h」とプログラムエラー時に出力されるエラー・メッセージが異なっているのはどうかと思います。「Python
3.8.2rc2」でも同様です。
一応、「errno.h」の方は、コメントどして説明されているようです。ネットでも確認はしたのですが、エラーに付いては、いろいろな問題があるようです。せめてインストールされたファイルでは相違が無いようにと心から願っています。
確認のほどよろしくお願いします。私の環境
Description: Ubuntu 18.04.4 LTS 2020.02.25.作成
Linux 4.15.0-88-generic x86_64 GNU/Linux
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
GNU C Library (Ubuntu GLIBC 2.27-3ubuntu1) stable release version 2.27.
Python 2.7.17 です。shikanai_card128@nifty.com
kiyokazu shikanai
Activity
cocoatomo commentedon Feb 25, 2020
Where did you pick this mail? Can I have the pointer to the original mail?
According to these sentences, the sender attached an archived file named "errnoの設定値確認.tar.xz."
It seems important to understand the argument so that I want to get the archived file.
JulienPalard commentedon Feb 25, 2020
@cocoatomo I did not let the email pass the modration of the list due to not being written in english, but copied it here to not loose the information, and sent a mail to the writer explaining this all and giving him the link to the issue, I hope he'll show. I'll try to recover the attachment also.
JulienPalard commentedon Feb 25, 2020
Found the file: https://mdk.fr/x/errnoの設定値確認.tar.xz
kiyokazu-shikanai commentedon Mar 4, 2020
Thanks to Julien Palard.
This GitHub is like a forum for programming discussions.
I sent an out-of-place email.
At this time, I want to send them, but I don't know how.
These files were converted to English.
The content of the file is about the discrepancy between the "errno error messages" in each manual.
Check errno setting.pdf 90kb
errno-python-eu.txt 24kb
Please send an e-mail if necessary.
However, I am using ubuntu displayed in Japanese, so I do not know if it can be read.
Check errno setting.pdf
errno-python-eu.txt
cocoatomo commentedon Mar 4, 2020
Julien, Thank you for searching the file!
kiyokazu-shikanai-san, I think you should report this issue to https://bugs.python.org/, since the members of translation teams are not responsible for flaws on the original documents.
JulienPalard commentedon Mar 4, 2020
I though it was a translation issue so I posted it here, sorry for the noise.
@kiyokazu-shikanai, the Python implementation of
os.strerror
is just a call tostrerror
(seeman 3 strerror
).In other words, it's more a discrepancy between the manpage and the libc. Python is not involved at all in this discrepancy. But it does not look like there's huge differences in the meanings when they differ, so I'd say it's OK.
You can check by also running this C program:
run it by saving it as
errno.c
, then runmake errno
, then./errno
.