mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Peter J. Milanese" <peterm@milanese.cc>
To: Urban Widmark <urban@teststation.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: SMBfs / Unicode problem perhaps?
Date: Sun,  5 May 2002 12:09:31 -0400	[thread overview]
Message-ID: <1020614971.3cd5593b0f908@www.milanese.cc> (raw)
In-Reply-To: <Pine.LNX.4.33.0205051720470.4444-100000@cola.enlightnet.local>

Bah...

I did find some old libs on the box...

I've cleaned that all up, and I'm currently compiling 2.2.4 to see how it goes.
I will back it to 2.2.3a again (clean) if there's a problem with that, but the 
notes don't say anything negative. I will go with the patch below IF it comes 
to that, but I'd imagine the old libs were suspect.

Thanks for openning my mind.... :)

P


Quoting Urban Widmark <urban@teststation.com>:

> 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 {
> 
> 




      reply	other threads:[~2002-05-05 16:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-05  1:34 Peter J. Milanese
2002-05-05 10:40 ` Urban Widmark
2002-05-05 15:19   ` Peter J. Milanese
2002-05-05 15:27     ` Urban Widmark
2002-05-05 16:09       ` Peter J. Milanese [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1020614971.3cd5593b0f908@www.milanese.cc \
    --to=peterm@milanese.cc \
    --cc=linux-kernel@vger.kernel.org \
    --cc=urban@teststation.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®