Is it feasible to rely on setlocale, and rely on locales being installed?
问题 I was trying to generate a localized date string with strftime , the placeholder I use is %x . The language/locale is setlocale(LC_ALL, array('jp','japanese')) , however neither locale was available so it generated a string with improper characters. I then installed the ja_JP.utf8 locale and specified that as the first element in the array and the date formatting issue I had was resolved. My question is, should I always rely on locales being installed? I'm aware of how to install them on