GithubHelp home page GithubHelp logo

Comments (12)

az0 avatar az0 commented on July 2, 2024

To test this, how do you force Python to show localized exceptions? On my Windows system I tried environment variables and settings in the Windows Control Panel, but the exceptions are in English.

from bleachbit.

vovkkk avatar vovkkk commented on July 2, 2024

I do not know, it seems very inconsistent: sometimes exseption contains actual message, sometimes message is an empty string.

For example, I can get following weirdness in IDLE 2.7.8:

2015-09-13 08-43-57 python 2 7 8 shell

In first case it properly say that there is sintax error in filename (since backslashes are not escaped)
in second case it say nothing, while should complain that directory is not empty.

Also, I’m not really familiar with codebase of BleachBit, but I have a feeling that MoveFileEx has some relation to pywin or ctypes, no?

from bleachbit.

vovkkk avatar vovkkk commented on July 2, 2024

How to reproduce for pywin:

  1. Make sure that you use some language that contains non-ascii characters (Greek, Russian, etc.) as a GUI language (set it in Control panel) and choose that language for application that do not support Unicode:

    2015-09-13 11-08-59
    2015-09-13 11-09-37

  2. Create some file and make it unaccessible for current user (Properties → Security).

  3. Try to use MoveFileEx on that file.

    import win32api, win32con
    
    win32api.MoveFileEx('C:\\Users\\vova\\Desktop\\1', None, win32con.MOVEFILE_DELAY_UNTIL_REBOOT)

Results

  • Russian: error: (5, 'MoveFileEx', '\xce\xf2\xea\xe0\xe7\xe0\xed\xee \xe2 \xe4\xee\xf1\xf2\xf3\xef\xe5.')

    2015-09-13 10-04-31 python 2 7 8 shell

  • Greek: error: (5, 'MoveFileEx', '\xc4\xe5\xed \xe5\xf0\xe9\xf4\xf1\xdd\xf0\xe5\xf4\xe1\xe9 \xe7 \xf0\xf1\xfc\xf3\xe2\xe1\xf3\xe7.')

    2015-09-13 11-06-11 python 2 7 8 shell

from bleachbit.

az0 avatar az0 commented on July 2, 2024

Is this still an issue with BleachBit 2.0 or greater? There were many fixes for encoding in BleachBit 2.0

from bleachbit.

vovkkk avatar vovkkk commented on July 2, 2024

Apparently it is not an issue in 2.0, but there is a similar issue with paths:
2018-04-02_14-04-23

2018-04-02_14-41-08

Новая папка (2)\Новый текстовый документ.txt

from bleachbit.

az0 avatar az0 commented on July 2, 2024

Thank you for the screenshot. I change the title of this ticket to: Russian filenames are corrupt in Windows GUI

I will try your instructions to change the Windows settings to reproduce this issue

from bleachbit.

az0 avatar az0 commented on July 2, 2024

I've had trouble reproducing this. I might just need mor eitme. I'll re-target to another milestone to allow more time.

from bleachbit.

az0 avatar az0 commented on July 2, 2024

@vovkkk I still have not been able to reproduce this, but there have been many related fixes and changes. Would you please test build 1237? This build has some special encoding fixes developed by a contractor focusing on encoding issues. These fixes are not yet merged into the master branch, so they are not in most of the CI builds yet. In other words, please don't test a newer build at this time: please test build 1237.

from bleachbit.

vovkkk avatar vovkkk commented on July 2, 2024

There are still issue in recognizing custom paths, even with Latin letters:

2019-08-24_11-09-40
2019-08-24_11-18-51

Новая папка (2)
pasgan ùr

Messages are improved

2019-08-24_10-53-07

from bleachbit.

az0 avatar az0 commented on July 2, 2024

Recently there was much work to update from Python 2.7 to Python 3 on Windows. While this wasn't directly targeted at this bug, it did have a major impact on how the system handles Unicode, so it might have helped.

Would you please test build 3.9.0.1540 or newer?

from bleachbit.

az0 avatar az0 commented on July 2, 2024

I am closing because (1) no response after some time and (2) it is likely there is an improvement.

If you have the same bug with BleachBit 3.9 or higher, re-open this bug. If the symptoms are different, open a new bug ticket.

from bleachbit.

az0 avatar az0 commented on July 2, 2024

The digitally-signed Windows installer is now available from the page BleachBit 3.9.0 beta

from bleachbit.

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.