20 #include <linux/slab.h>
37 static int warn_again = 5;
38 int warn = !!warn_again;
41 for (i = 0; (i < len) && from[i]; i++) {
53 for (i = 0; (i < len) && from[i]; i++) {
60 "non-latin1 character 0x%x found in JFS file name\n",
63 "mount with iocharset=utf8 to access\n");
82 static int jfs_strtoUCS(
wchar_t * to,
const unsigned char *
from,
int len,
89 for (i = 0; len && *
from; i++, from += charlen, len -= charlen)
91 charlen = codepage->
char2uni(from, len, &to[i]);
93 jfs_err(
"jfs_strtoUCS: char2uni returned %d.",
95 jfs_err(
"charset = %s, char = 0x%x",
101 for (i = 0; (i < len) && from[i]; i++)
102 to[i] = (
wchar_t) from[
i];
132 if (uniName->
namlen < 0) {