This is not about "correct" tesseract executable. This is about "correct" tesseract-ocr data.
Let assume this scenario:
You have installed last official tesseract version in C:\Program Files\Tesseract-OCR\ (so your tessdata_prefix environment variable points to that directory)
You create alternative eng.traineddata file (e.g. without dictionaries) and you placed it to C:\Program Files\Tesseract-OCR-dev\tessdata.
With current executable if you want to use your alternative eng data you must modify tessdata_prefix environment variable to C:\Program Files\Tesseract-OCR-dev\. Than you call:
tesseract eurotext.tif stdout -l eng
When you want to use "official" data you need to change tessdata_prefix environment variable back to C:\Program Files\Tesseract-OCR\.
Proposed patch make it simpler. You do not need to modify tessdata_prefix environment variable. You can just use option "--tessdata-dir" (that will have higher priority that environment variable):
tesseract --tessdata-dir "C:\Program Files\Tesseract-OCR-dev\tessdata" eurotext.tif stdout -l eng
Of course patch also modify behavior of the tesseract-ocr library regarding priority of tessdata_prefix - at the moment environment variable has top priority. Patch change it so the argument has top priority (for more detail see comments in patch for ccutil/mainblk.cpp).
PS1: maybe instead of "--tessdata-dir" we can use "--tessdata_prefix" to be consistent
--
Zdenko