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>

cjlin1/libsvm,cypro666/libsvm,cjlin1/libsvm,TKlerx/libsvm,TKlerx/libsvm,cypro666/libsvm,TKlerx/libsvm,cypro666/libsvm,Maluuba/libsvm,Maluuba/libsvm,Maluuba/libsvm,cjlin1/libsvm,TKlerx/libsvm,Maluuba/libsvm,cypro666/libsvm,cjlin1/libsvm,cypro666/libsvm,cjlin1/libsvm,cypro666/libsvm,Maluuba/libsvm,Maluuba/libsvm,TKlerx/libsvm,cjlin1/libsvm,TKlerx/libsvm