D5288: tests: make test-alias.t pass with re2

Yuya Nishihara yuya at tcha.org
Wed Nov 21 09:21:46 EST 2018


>   Thanks. FWIW, re2 options allow to choose an encoding which is latin1 or utf8 (https://github.com/google/re2/blob/master/re2/re2.h#L609). Presumably latin1 means that "." matches a byte, which would seem more compatible with re, but python bindings don't provide the ability to choose this encoding.

Indeed. We could pass in a fat unicode array (i.e. each byte as latin-1 char)
to re2, but that would sacrifice the performance.

Thanks for the info.


More information about the Mercurial-devel mailing list