lkml.org 
[lkml]   [2002]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: SMBfs / Unicode problem perhaps?
On Sun, 5 May 2002, Peter J. Milanese wrote:

> :\ - I am running 2.2.3a... I'll look at those messages and see if there is a
> corelation. Thanks for the tip-

Are you sure your smbmount is 2.2.3a and that you don't have a mix of an
old 2.2.1a install? smbmount from 2.2.3a should not negotiate unicode
unless you told it to ...

You could also try the untested patch below that only enables it if you
also specify "codepage=unicode" as a mount option.

/Urban


diff -urN -X exclude linux-2.5.13-kbuild-orig/fs/smbfs/proc.c linux-2.5.13-kbuild-smbfs/fs/smbfs/proc.c
--- linux-2.5.13-kbuild-orig/fs/smbfs/proc.c Fri May 3 02:22:42 2002
+++ linux-2.5.13-kbuild-smbfs/fs/smbfs/proc.c Sun May 5 14:53:08 2002
@@ -979,7 +979,9 @@
SB_of(server)->s_maxbytes = ~0ULL >> 1;
VERBOSE("LFS enabled\n");
}
- if (server->opt.capabilities & SMB_CAP_UNICODE) {
+ if (server->opt.capabilities & SMB_CAP_UNICODE &&
+ server->remote_nls == &unicode_table) {
+ /* Only enable unicode if the remote nls is also unicode */
server->mnt->flags |= SMB_MOUNT_UNICODE;
VERBOSE("Unicode enabled\n");
} else {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.031 / U:1.856 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site