I've identified the bug. When I set LANG environment variable, ptex works. If LANG is not set, fnmatch() called in default_kanji_enc() in ptexenc.c does not return. Although this might be a bug of fnmatch library, ptexenc.c should also treat the case. Regards, -- Hiroto Kagotani <hiroto.kagotani at gmail.com>