Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems like bauh has problem a with Unicode #242

Closed
Templayer opened this issue Mar 15, 2022 · 12 comments
Closed

Seems like bauh has problem a with Unicode #242

Templayer opened this issue Mar 15, 2022 · 12 comments

Comments

@Templayer
Copy link

Describe the bug
I can't currently post an image, but when I do actually update applications through bauh, the progress bar in the details view shows question marks. I presume that is a bug and it is supposed to have some Unicode symbols for depicting it, and that it isn't a feature. Because using question marks for a progress bar would be silly. :P

I'll try getting a picture next time I actually get to download an actual update.

This might be connected to issue #238

Software Environment
bauh version: 0.10.0
O.S: Linux Mint 20.3 Una with Cinnamon; kernel: 5.4.0-104-generic
Python version: Python 3.8.10
Installation method: pip3
System/input/layout language: Czech (might be important for this issue)

@vinifmor
Copy link
Owner

@Templayer , what's your system encoding ?

@Templayer
Copy link
Author

@Templayer , what's your system encoding ?

I would presume UTF-8, but how do I check that? I tried googling, but couldn't get a proper answer...

@Templayer
Copy link
Author

Do I need to use @vinifmor if I'm using Reply/Quote? I'm not sure if I should or not. Well, this comment solves that if it is indeed needed.

There is some interesting info about that and python here: https://askubuntu.com/questions/3248/what-is-the-default-character-encoding

Terminal language/encoding:
image

System language:
image
image

@vinifmor
Copy link
Owner

I'm going to have a look if it is possible to change the encoding of the component responsible to display the action details. Thanks for pointing that out.

@Templayer
Copy link
Author

Actually, Unicode symbol problems are apparent in the application list as well.

I didn't notice that before, because I had those locales stuck and when searching for new hardware, I basically skipped the list of already installed applications just to end up on the stuck locale updates after installing an application.

Actually, I went to make printscreens, but I cannot find any problems in the application list.

Also, the stuck locales (there were two recently, like a few days ago) are gone.

There isn't an auto-updater in place, is there?

The problem in the log still remains, however.

image

@Templayer
Copy link
Author

Nope, found it - look at the description for Web GNOME!

image

@vinifmor
Copy link
Owner

This issue seems to be on the Flatpak side. I've been testing some scenarios. I haven't come across such issue with the other back-ends.

@Templayer
Copy link
Author

@vinifmor That does seem to be the correct conclusion.

Look at the selected row:

image

Except for the log section where I think it also screws up for non-flatpacks. I think it does for snaps too, and I haven't yet really checked the debians.

@vinifmor
Copy link
Owner

I believe it is fixed for Flatpak (I'm going to perform more testing over the other types). Could you give me a feedback ? Just download the compressed fix from this branch https://github.com/vinifmor/bauh/archive/55aaaebf2e25145912dd6df3bf1e49b43228ba95.tar.gz and install with pip (pip install [path_to_file])

@Templayer
Copy link
Author

Just as a note: I've used pip3.

image

Excellent job! Seems to be working! :)

The list now lists Unicode symbols correctly for diacritical symbols for flatpacks as well:

image

Feel free to close the issue when the new version is released. ^_^

@vinifmor
Copy link
Owner

Good news then. I will still have a look on the other types before closing the issue. Thanks for the feedback.

@Templayer
Copy link
Author

No problem. Let's make this software as good as it can be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants