Closed timothytylee closed 6 years ago
Steps to Reproduce Run the following code:
widechar *inbuf = "`>`>"; widechar outbuf[10]; int outpos[11]; int inlen = 4; int outlen = 10; lou_backTranslate("en-ueb-g1.ctb", inbuf, &inlen, outbuf, &outlen, NULL, NULL, outpos, NULL, NULL, 0);
Expected Result: inlen == 4
Actual Result: inlen == 2
Liblouis Version 3.5.0
What is outlen and outbuf in your example?
outlen == 2 outbuf == ">>" So this problem is not apparent from a call to lou_backTranslateString()
Fixed by https://github.com/liblouis/liblouis/pull/624 (https://github.com/liblouis/liblouis/pull/624/commits/aac37bf68968d2ede18dd4ed314bfbc1a78a3b2f).
Steps to Reproduce Run the following code:
Expected Result: inlen == 4
Actual Result: inlen == 2
Liblouis Version 3.5.0