getlocale
if ((err = SLPOpen(getlocale(), SLP_FALSE, &persrv_h)) != SLP_OK) {
if ((err = SLPOpen(getlocale(), SLP_FALSE, &h)) != SLP_OK) {