0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

"ソ能表"問題

0
Last updated at Posted at 2021-09-19

具体的には、Shift_JIS文字コードで、2バイト目に0x5cを持つ文字の問題の事なんだけど。。。

詳しくは、下記に書いてくれている。
http://www5f.biglobe.ne.jp/~fuku-labo/library/program/common/1/004.htm

組込み開発やってた頃、原因不明のビルドエラーが起きてて、
突き詰めるとコメント行の最後が、"能"だったということがあった。

下記みたいなコードだった。

// ここでXxxxの判定が可能
                     ↑↑↑コレ。コメントが"能"で終わっている。
public void checkXxxx() {
}

あまり工数もない中無駄にすごい時間を費やして、冷や汗だったのを覚えている。

それ以来、コメントはなるべくブロックコメント(/**/) を使うようにしている。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?