Check return value of setlocale().
Check return value of setlocale().

setlocale() is allowed to return NULL.  In particular, this happens on
Bionic (Android's libc) because it doesn't support C locales.

Signed-off-by: Chih-Jen Lin <79ef78d58a17c54482a31255666a689b188960a6@csie.ntu.edu.tw>

toothacher17/liblinear,ShawnHuang/liblinear,toothacher17/liblinear,angleto/liblinear,rokm/liblinear,rokm/liblinear,robin-lai/liblinear,Maluuba/liblinear,cjlin1/liblinear,ShawnHuang/liblinear,toothacher17/liblinear,ShawnHuang/liblinear,angleto/liblinear,Maluuba/liblinear,robin-lai/liblinear,cjlin1/liblinear,robin-lai/liblinear,rokm/liblinear,Maluuba/liblinear,cjlin1/liblinear,cjlin1/liblinear,robin-lai/liblinear,toothacher17/liblinear,angleto/liblinear,Maluuba/liblinear,rokm/liblinear,angleto/liblinear,ShawnHuang/liblinear