Giter VIP home page Giter VIP logo

Comments (4)

rikyoz avatar rikyoz commented on June 12, 2024

Hi!
If I understand your problem correctly, you're trying to display non-ASCII file names on the Windows console.
If this is the case, it might not be an issue of bit7z but rather that printing Unicode strings in console programs on Windows is more complex than it should be (https://stackoverflow.com/questions/2492077/output-unicode-strings-in-windows-console).

You're using the BIT7Z_USE_NATIVE_STRING, so bit7z uses wide strings. In this case, to correctly print Unicode characters, you must first call _setmode(_fileno(stdout), _O_U16TEXT) to set the stdout encoding to UTF-16.
Please be aware that you need also to include the following headers:

#include <fcntl.h> //for _O_U16TEXT
#include <io.h>  //for _setmode

This might be a duplicate of #65, and, in the same issue, you can find a more complete code example #65 (comment).

If this is not the case, can you provide the path strings that cause the issue?
Thank you!

from bit7z.

psvajaz avatar psvajaz commented on June 12, 2024

After our testing, it seems that this is not the issue you mentioned. We tested the replacement 7z version and found that this issue did not occur in versions before 19.00, but occurred after 19.01. We tested tools including 7zFM and nanaZip that use the default 7z.dll, and they can also reproduce this issue. We can provide you with the problematic ZIP file, but this file has some privacy issues and cannot be published on GitHub. Can you provide me with a way to send the ZIP file

from bit7z.

psvajaz avatar psvajaz commented on June 12, 2024

I presented an issue to the developers of 7z in sourceforge: https://sourceforge.net/p/sevenzip/bugs/2428/

from bit7z.

rikyoz avatar rikyoz commented on June 12, 2024

I see! Unfortunately, there isn't much that bit7z can do in this case, as it seems to be a problem of 7-Zip itself.

from bit7z.

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.