Encoding problems in non-english version (at least in Spanish)

Bug #1660555 reported by Tomás F. L.
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Shutter
Incomplete
Undecided
Unassigned

Bug Description

Hello.

I use Manjaro OpenRC 16.08 x86_64

Actual version is 0.93.1

I use UTF-8 in all system.

In the 2 last updates of the Shutter, the accented words,at least in Spanish, do not appear correctly, show him like one an unknown symbol �. The default folders to save the captures is "Imágenes" and the program show "Im�genes" and when it try to save show an error:

There was an error saving the image 'home/user/Im�genes/'
Error saving the image 'Selecci�n.png'
.... The file or the directory doesn't exist.

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Are you using the shutter or the shutter-bzr package?

Changed in shutter:
status: New → Incomplete
Revision history for this message
Tomás F. L. (v17564) wrote :

I use the package from AUR repository: /var/cache/pacman/pkg/shutter-0.93.1-6-any.pkg.tar.xz

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Please try the shutter-bzr package and let me know if the problem still persists: https://aur.archlinux.org/packages/shutter-bzr/

Revision history for this message
Tomás F. L. (v17564) wrote :

I tried to install the package shutter-bzr using pamac-manager but an errors appear during the process:

 - gtk2-perl (package not found)

 ==> to install or to compile the dependences that are missing for gnome-vfs-perl:
 error: destination not found: gnome-vfs

gnome-vfs-perl 1.082-5 (2017-01-27 17:54)
(package without support: it might be dangerous!)
==> does he want to edit PKGBUILD? [S/n] ("A" to annul)
==>------------------------------------------------
==> n

==> dependences of gnome-vfs-perl:
 - perl (already installed)
 - perl-extutils-pkgconfig (already installed) [makedepend]
 - perl-extutils-depends (already installed) [makedepend]
 - gtk2-perl (package not found)
 - gnome-vfs (compiling from AUR)

==> to keep on compiling gnome-vfs-perl? [S/n]
==>------------------------------------------
==>

==> compiling and installing the package
==> to install or to compile the dependences that are missing for gnome-vfs-perl:
error: destination not found: gnome-vfs
==> to begin the gnome-vfs-perl compilation again? [s/N]
==>--------------------------------------------------
==>

==> I WARN: The dependences settled before the mistake
verifying dependences …

Packages (2) perl-extutils-depends-0.405-1 perl-extutils-pkgconfig-1.15-1

Removed entire size: 0,07 MiB

:: Does he want to remove these packages? [S/n]
: Processing the changes of the packages...
(1/2) removing perl-extutils-depends [##############7g #######] 100 %
(2/2) removing perl-extutils-pkgconfig [##############7g #######] 100 %
==> to begin the gnome-perl compilation again? [s/N]
==>----------------------------------------------
==>

==> I WARN: The dependences settled before the mistake
error: not opposing destination: perl-libwww>
==> to begin the shutter-bzr compilation again? [s/N]
==>-----------------------------------------------

Revision history for this message
Michael Kogan (michael-kogan) wrote :

What is the output of

yaourt -S gtk2-perl gnome-vfs-nosmb

?

Revision history for this message
Tomás F. L. (v17564) wrote :

yaourt -S gtk2-perl gnome-vfs-nosmb compile without errors.

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Ok, perfect! Then please try again installing shutter-bzr.

Revision history for this message
Tomás F. L. (v17564) wrote :

No problem with accents, all ok.

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Perfect, I will update the non-bzr version in the evening!

Revision history for this message
Tomás F. L. (v17564) wrote :

I have just received an update of two packages:

- gnome-vfs-nosmb-2.24.4-9-x86_64.pkg.tar.xz
- gnome-vfs-perl-1.082-6-x86_64.pkg.tar.xz

but don't resolve the issue.

Also i need "removed gnome-vfs (2.24.4-10)" for a conflict between packages:

==> to continue the gnome-vfs-nosmb installation? [S/n]
looking for conflicts between packages …
:: gnome-vfs-nosmb and gnome-vfs they are in conflict. To remove gnome-vfs? [s/N] s

Revision history for this message
Tomás F. L. (v17564) wrote :

The update process also install this packages from "extra/gnome-common" and "extra/gtk-doc"

installed autoconf-archive (1:2016.09.16-1)
installed yelp-xsl (3.20.1-2)
installed itstool (2.0.2+5+g676f3f7-2)
installed yelp-tools (3.18.0+1+g193c2bd-1)
installed docbook-xml (4.5-6)
installed docbook-xsl (1.79.1-2)
installed source-highlight (3.1.8-11)
installed glib2-docs (2.50.2-1)
installed gtk-doc (1.25+33+g567353f-1)
installed gnome-common (3.18.0-1)

upgraded gnome-vfs-perl (1.082-5 -> 1.082-6)

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Yes, you need to remove gnome-vfs since this package no longer exists and therefore I have changed the dependency of gnome-vfs-perl from gnome-vfs to gnome-vfs-smb. Remove gnome-vfs to switch over to gnome-vfs-nosmb:

yaourt -Rdd gnome-vfs
yaourt -Syua

I included the better patch from shutter-bzr into shutter. Please test if the bad characters problem is now also fixed in the non-bzr shutter package.

Revision history for this message
Tomás F. L. (v17564) wrote :

I run your commands and this is his output:

yaourt -Rdd gnome-vfs

Paquetes (1) gnome-vfs-2.24.4-10

Tamaño total quitado: 5,53 MiB

:: ¿Desea quitar estos paquetes? [S/n]
:: Ejecutando los «hooks» de preinstalación...
(1/1) Uninstalling GConf schemas...
:: Procesando los cambios de los paquetes...
(1/1) quitando gnome-vfs [######################] 100%
==> Paquetes que ya no los requiere ningún paquete instalado:
    gnome-mime-data
error: missing 'gnome-vfs' dependency for 'gnome-vfs-perl'
error: missing 'gnome-vfs' dependency for 'libgnome'

yaourt -Syua

==> Solamente actualizaciones de paquetes (nueva publicación):
aur/gnome-vfs-perl 1.082-5 5 -> 6
aur/shutter 0.93.1-6 6 -> 7

Don't work, the process stop in this point:

  -> Extrayendo shutter-0.93.1.tar.gz con bsdtar
==> Iniciando prepare()…
patching file share/shutter/resources/modules/Shutter/App/HelperFunctions.pm
patching file share/shutter/resources/system/upload_plugins/upload/Dropbox.pm
can't find file to patch at input line 20
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From: Boyuan Yang <email address hidden>
|Date: Mon, 5 Dec 2016 16:21:51 +0800
|Subject: Force utf8 for retrieved window name from Gtk2.
|
|Transform the window name retrieved from Gtk2 to utf8
|to prevent messy encoding problem. Otherwise latin-1
|would be used and cause mess.
|
|This should work on most contemporary systems.
|
|Signed-off-by: Boyuan Yang <email address hidden>
|---
| bin/shutter | 7 ++++++-
| 1 file changed, 6 insertions(+), 1 deletion(-)
|
|diff --git a/bin/shutter b/bin/shutter
|index a0495d4..38eeedd 100755
|--- a/bin/shutter
|+++ b/bin/shutter
--------------------------
File to patch:

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Sorry, it is already fixed in -8, please try building it again!

Revision history for this message
Tomás F. L. (v17564) wrote :

New update of shutter, now the install process work and ...

"Work correctly and solve the problem with accents"

Many thanks Photon (michael-kogan).

Revision history for this message
Tomás F. L. (v17564) wrote :

yaourt -Syua

==> Solamente actualizaciones de paquetes (nueva publicación):
aur/shutter 0.93.1-6 6 -> 8

Revision history for this message
Michael Kogan (michael-kogan) wrote :

Perfect!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.