-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
12 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
fb1d536
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これだと和文文字まで
^^
形式になって日本語ファイル名が開けなくなります…fb1d536
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
うちの macOS ではコンパイラ警告 #81 (comment) が3回出て always false だと言われるのですが,必要なのですね。元々の型宣言がよくない?
fb1d536
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pack_buffered_name
でappend_to_name
が使われるときの引数が unsigned char のようですね。(ここには和文文字が入ることはない?)
fb1d536
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あらら,たしかに私の環境でも同様のコンパイラ警告がでたのでいらないなと思ったのですが,やっぱり日本語ファイル名が開けないですね.revert しておきます.
fb1d536
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
append_to_name
関数は全部で6回呼ばれてpack_file_name
から呼ばれる3回:packed_ASCII_code
→unsigned short
pack_buffered_name
から呼ばれる3回:ASCII_code
→unsigned char
ということなのですね。前者は引数が
str_pool
だから和文文字も入りますが,後者のうち1回は引数がbuffer
で 0--255 しかないはず(もう一つのbuffer2
に和文文字フラグを示す 0 か 1 が格納される)ですし,残り2回は TeX のフォーマット名だから和文文字を使うことはないでしょう。