11
11

More than 5 years have passed since last update.

Nginxが謎のエラーを吐いたのでEmacsで解決した

Posted at

問1:以下のnginx.confがエラーとなる理由を指摘せよ。(3点)

スクリーンショット 2014-10-02 23.09.05.png

答え:

9行目の一見スペースに見える奴がその実\ufffc。

っていうふざけた事象に遭遇した。こんなん判るわけないのでもともと入れてたEmacsのwhite spaceで見えるようにした。

init.el
(setq whitespace-display-mappings
      '(
        (space-mark ?\u3000 [?\u3000])
        (space-mark ?\ufffc [?_])
        ;; WARNING: the mapping below has a problem.
        ;; When a TAB occupies exactly one column, it will display the
        ;; character ?\xBB at that column followed by a TAB which goes to
        ;; the next TAB column.
        ;; If this is a problem for you, please, comment the line below.
        (tab-mark ?\t [?\u00BB ?\t] [?\\ ?\t])))

(setq whitespace-space-regexp "\\([\u3000\ufff9-\ufffc]+\\)")
(set-face-foreground 'whitespace-space "cyan")
(set-face-background 'whitespace-space "cyan")

スクリーンショット 2014-10-02 23.12.27.png

これでもう\ufff9-\ufffcに怯えることもなくなった。

11
11
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
11
11