Make mklocale work again, now that fwrite()'s return codes are different.
Make mklocale work again, now that fwrite()'s return codes are different.

Submitted by:	Navdeep Parhar <nparhar gmail com>
Approved by:	re (kib)

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase