c - What files does setlocale() use? -


compiling on shared centos server not allowed. therefore, compile program in debian computer, linking debian's system libraries such libc, etc. upload program , debian system libraries , program works. problem setlocale() not work @ centos. centos has "en_us.utf8" installed , works on programs except mine. suspect have upload debian's locale files ? how link program debian locale files ? tried use locpath unsure of how works exactly. files have link , how ?

c program:

setenv("locpath", "/", 1);  if (setlocale(lc_all, "en_us.utf8") == null) {     puts("not set"); } 

quote: locpath environment variable tells setlocale() function name of directory load locale object files. if locpath not defined, default directory /usr/lib/nls/locale searched. locpath similar path environment variable; contains list of z/os unix directories separated colons.

so specifying / , hoping recursive search not work.

you produce static binary , upload host.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -