Lines Matching refs:nls
16 #include <linux/nls.h>
186 if (BEFS_SB(sb)->nls) {
248 if (BEFS_SB(sb)->nls) {
502 * Uses uni2char() / char2uni() rather than the nls tables directly
508 struct nls_table *nls = BEFS_SB(sb)->nls;
513 /* The utf8->nls conversion won't make the final nls string bigger
521 if (!nls) {
537 /* convert from Unicode to nls */
540 unilen = nls->uni2char(uni, &result[o], in_len - o);
553 "cannot be converted to unicode.", nls->charset);
585 struct nls_table *nls = BEFS_SB(sb)->nls;
591 * There are nls characters that will translate to 3-chars-wide UTF-8
599 if (!nls) {
613 /* convert from nls to unicode */
614 unilen = nls->char2uni(&in[i], in_len - i, &uni);
633 "cannot be converted to unicode.", nls->charset);
796 unload_nls(BEFS_SB(sb)->nls);
910 /* load nls library */
912 befs_debug(sb, "Loading nls: %s",
914 befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset);
915 if (!befs_sb->nls) {
916 befs_warning(sb, "Cannot load nls %s"
917 " loading default nls",
919 befs_sb->nls = load_nls_default();
921 /* load default nls if none is specified in mount options */
923 befs_debug(sb, "Loading default nls");
924 befs_sb->nls = load_nls_default();