vinifmor / bauh

Graphical user interface for managing your Linux applications. Supports AppImage, Debian and Arch packages (including AUR), Flatpak, Snap and native Web applications
zlib License
959 stars 71 forks source link

Seems like bauh has problem a with Unicode #242

Closed Templayer closed 2 years ago

Templayer commented 2 years ago

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 https://github.com/vinifmor/bauh/issues/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 commented 2 years ago

@Templayer , what's your system encoding ?

Templayer commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

image

vinifmor commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Templayer commented 2 years ago

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