Lines Matching refs:nls
16 #include <linux/nls.h>
187 if (BEFS_SB(sb)->nls) {
249 if (BEFS_SB(sb)->nls) {
503 * Uses uni2char() / char2uni() rather than the nls tables directly
509 struct nls_table *nls = BEFS_SB(sb)->nls;
514 /* The utf8->nls conversion won't make the final nls string bigger
522 if (!nls) {
538 /* convert from Unicode to nls */
541 unilen = nls->uni2char(uni, &result[o], in_len - o);
554 "cannot be converted to unicode.", nls->charset);
586 struct nls_table *nls = BEFS_SB(sb)->nls;
592 * There are nls characters that will translate to 3-chars-wide UTF-8
600 if (!nls) {
614 /* convert from nls to unicode */
615 unilen = nls->char2uni(&in[i], in_len - i, &uni);
634 "cannot be converted to unicode.", nls->charset);
797 unload_nls(BEFS_SB(sb)->nls);
911 /* load nls library */
913 befs_debug(sb, "Loading nls: %s",
915 befs_sb->nls = load_nls(befs_sb->mount_opts.iocharset);
916 if (!befs_sb->nls) {
917 befs_warning(sb, "Cannot load nls %s"
918 " loading default nls",
920 befs_sb->nls = load_nls_default();
922 /* load default nls if none is specified in mount options */
924 befs_debug(sb, "Loading default nls");
925 befs_sb->nls = load_nls_default();