Code Monkey home page Code Monkey logo

Comments (5)

gd avatar gd commented on June 12, 2024

We can certainly do that but I am wondering why the CP850 codepage (which is typically compiled in) is not available in the first place.

from samba-operator.

phlogistonjohn avatar phlogistonjohn commented on June 12, 2024

Let me know if there are any commands we can run to investigate. Otherwise, I'd like to try and squish the annoying message and then we can open a new issue to investigate deeper.

from samba-operator.

anoopcs9 avatar anoopcs9 commented on June 12, 2024

We can certainly do that but I am wondering why the CP850 codepage (which is typically compiled in) is not available in the first place.

I dug into this little deeper and here are my findings:

CP850 and IBM850 can be used interchangeably as they are aliases to each other.

charset detection is mostly driven by an on-demand initialization function get_conv_handle() in Samba which basically attempts to find DEFAULT_DOS_CHARSET(CP850) unless explicitly specified via dos charset smb.conf option. DEFAULT_DOS_CHARSET is a compile/build time macro defined to indicate the charset found. Further in its absence DEFAULT_DOS_CHARSET is set to ASCII.

I verified using sample program that independent library files, in this case for IBM850, are required for individual charsets. In Fedora glibc-gconv-extra package provides IBM850.so. Even though Samba rpms are built with IBM850 our smbclient images based on CentOS Stream 8(and server images based on Fedora 35 too) doesn't have this package installed by default and thus we end up with the warning for smbclient(and in server logs).

from samba-operator.

phlogistonjohn avatar phlogistonjohn commented on June 12, 2024

Wow. Love the in depth analysis @anoopcs9. Between all that, and this seems very much an smb1 thing I'm strongly in favor of suppressing the error message by defaulting to ascii. Hopefully as samba continues to deprecate/drop support for smb1 this goes away entirely.

In the meantime I'm planning on merging #229 later today unless I hear some clear NAKs.

from samba-operator.

synarete avatar synarete commented on June 12, 2024

@anoopcs9 Impressive!

from samba-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.