- Support many text encodings. Previously only UTF-8 was supported. (#21)
- Add
--encoding
(-E
) command line option to specify file encoding of matched files. For example, the following command searches files encoded in Shift JIS.hgrep --encoding sjis pattern path/to/dir
- Detect file encodings from BOM. hgrep can automatically detect UTF-16LE, UTF-16BE, and UTF-8 if BOM exists in the file.
- Add
- Fix some syntax detection fails when BOM is inserted at the head of file. (#20)
- Improve performance by removing redundant
read
system calls on detecting syntax. - Improve error messages when failing to read files.