Comments (12)
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.
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:
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.
How to reproduce for pywin:
-
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:
-
Create some file and make it unaccessible for current user (Properties → Security).
-
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.')
-
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.')
from bleachbit.
Is this still an issue with BleachBit 2.0 or greater? There were many fixes for encoding in BleachBit 2.0
from bleachbit.
Apparently it is not an issue in 2.0, but there is a similar issue with paths:
Новая папка (2)\Новый текстовый документ.txt
from bleachbit.
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.
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.
@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.
There are still issue in recognizing custom paths, even with Latin letters:
Новая папка (2)
pasgan ùr
Messages are improved
from bleachbit.
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.
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.
The digitally-signed Windows installer is now available from the page BleachBit 3.9.0 beta
from bleachbit.
Related Issues (20)
- MS Edge - Recently closed history not deleted HOT 1
- Bleachbit 4.6.0 error on Win 10 HOT 2
- theres a windows error 5 when im trying to run the program, Can someone please explain how to fix it? HOT 1
- journalctl is not cleaned HOT 5
- Debugging terminal, the directory is not empty
- Cannot clean browser history if another user is running browser HOT 3
- Need help.. anyone know why I can't install? HOT 1
- Bleachbit broke my charging light indicator.
- bleach bit load/run problem HOT 1
- Bleachbit default setting HOT 1
- Bleachbit use with another cleaner/optimizer HOT 1
- Bleachbit shows only boxes HOT 1
- Question regarding HSTS "cookies"
- Bleach bit deletes a keePassXC formating
- Can add .dotted files/directories to whitelist
- Blurry UI
- OK, I am trying to abide by the posting guidelines... HOT 1
- OK, I am trying to abide by the posting guidelines... HOT 1
- "The specified module could not be found." - It's back from the dead. HOT 1
- Bleachbit moves shortcuts on screen
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bleachbit.