aMSN Forums
May 24, 2013, 11:19:10 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Desktop Integration, KDE4 and paths with accented letters  (Read 9108 times)
Fenix-TX
Super Power User
**
Offline Offline

Posts: 660


View Profile
« on: May 05, 2009, 11:42:07 am »

I just noticed that Desktop Integration does not work fine with KDE4. An example, if you have a path like "Imágenes", you can't access to this path, and you see stranges characters on "Filter".


Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #1 on: May 05, 2009, 04:35:09 pm »

I think it's a bug with the kde file chooser when launched in command line, so we can't do anything about it. It' s a know issue anyways.,.
Logged

KaKaRoTo
Fenix-TX
Super Power User
**
Offline Offline

Posts: 660


View Profile
« Reply #2 on: May 05, 2009, 06:39:03 pm »

Quote from: "kakaroto"
I think it's a bug with the kde file chooser when launched in command line, so we can't do anything about it. It' s a know issue anyways.,.

Oups! Sorry then  :oops:

PD: Mmmmm.....strange....on konsole, i put the following command and i can browse all paths, and i do not see any wrong character:
kdialog --caption \"Imágenes\" --getopenfilename \"Archivos\ de\ imágenes\" \".jpg\"
Logged
GuS-Arg
Super Power User
**
Offline Offline

Posts: 450



View Profile WWW
« Reply #3 on: May 05, 2009, 07:09:15 pm »

Quote from: "kakaroto"
I think it's a bug with the kde file chooser when launched in command line, so we can't do anything about it. It' s a know issue anyways.,.


I dont think this is a KDE4 issue since it used to work before that i remember.. and using kde4...
Logged

Fenix-TX
Super Power User
**
Offline Offline

Posts: 660


View Profile
« Reply #4 on: May 05, 2009, 07:17:36 pm »

It's strange, using this command on konsole works fine: kdialog --caption "open" --getopenfilename "/home/jesus/amsn" "**.gif *.GIF *.jpg *.JPG *.jpeg *.JPEG *.bmp *.BMP *.png *.PNG|Archivos de imágenes". It's the same that i have found on plugins log. I can't understand why executing the same command with tcl does not work...


In fact, using this command on konsole i have the kdialog translated into Spanish!! I see "Filtro" and not "Filter". I think that this is related to the "locale" settings.


Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #5 on: May 05, 2009, 10:28:57 pm »

ohh.. this might be right.. because tcl/tk forces the locale to "C" and since kdialog is a subprocess of amsn, it also gets locale "C"... this might also explain spanish users of firefox get an english firefox ...
Logged

KaKaRoTo
billiob
Administrator
Super Power User
*****
Offline Offline

Posts: 1352


View Profile
« Reply #6 on: May 05, 2009, 11:06:23 pm »

Can you try with the svn version of amsn if it's not already the case?
Logged
GuS-Arg
Super Power User
**
Offline Offline

Posts: 450



View Profile WWW
« Reply #7 on: May 06, 2009, 01:30:12 am »

Quote from: "billiob"
Can you try with the svn version of amsn if it's not already the case?


Indeed, with SVN version happens the same (if was not fixed today Tongue)
Logged

kjir
Power user
*
Offline Offline

Posts: 133


View Profile
« Reply #8 on: May 06, 2009, 01:35:56 am »

Could you try by commenting the first lines in the amsn file? (The ones changed in the last commit by kakaroto and also the set env(LC_ALL) C)
If it works with that commented out... we must figure out another way to do it :O
Logged
GuS-Arg
Super Power User
**
Offline Offline

Posts: 450



View Profile WWW
« Reply #9 on: May 06, 2009, 02:59:18 am »

Quote from: "kjir"
Could you try by commenting the first lines in the amsn file? (The ones changed in the last commit by kakaroto and also the set env(LC_ALL) C)
If it works with that commented out... we must figure out another way to do it :O


If I comment that line, i cant login to aMSN, having this debug:

Code:

bad screen distance "90.0"
    while executing
"$canvas coords $item $newX [lindex [$canvas coords $item] 1]"
    (procedure "::guiContactList::centerItems" line 7)
    invoked from within
"::guiContactList::centerItems $clcanvas"
    (procedure "cmsn_draw_signin" line 32)
    invoked from within
"cmsn_draw_signin"
    (procedure "cmsn_ns_connect" line 21)
    invoked from within
"cmsn_ns_connect $username $passwd"
    (procedure "::MSN::connect" line 76)
    invoked from within
"::MSN::connect $password"
    (procedure "::loginscreen::Snit_methodlogin" line 15)
    invoked from within
"$self login $user $pass"
    (procedure "::loginscreen::Snit_methodLoginFormSubmitted" line 28)
    invoked from within
".main.loginscreen LoginFormSubmitted"
    invoked from within
".main.loginscreen.login invoke"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list $w invoke]"
    (procedure "tk::ButtonUp" line 22)
    invoked from within
"tk::ButtonUp .main.loginscreen.login"
    (command bound to event)
Logged

Fenix-TX
Super Power User
**
Offline Offline

Posts: 660


View Profile
« Reply #10 on: May 06, 2009, 07:04:00 am »

The latest SVN version is not working:
Code:

Error in startup script: no such variable
    (read trace on "::env(LC_ALL)")
    invoked from within
"set ::LC_ALL $::env(LC_ALL)"
    (file "./amsn" line 51)


And if i comment all lines related with locale, i have the same bug as Gus-Arg.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #11 on: May 06, 2009, 07:43:31 am »

hehe, how nice... well, Gus/Fenix, the bug "bad screen distance" is because "90.0" is what tk expects but when it tries to parse it it fails because your locale says the decimal separator is a comma, not a dot... that's the whole purpose of aMSN setting the LC_ALL to "C" at the start... at the same time, we are thinking that setting the LC_ALL env variable to "C" is causing your kdialog (or firefox or whatever) to launch with the "C" locale instead of the en/fr/sp/whatever locale... which is causing the bug you currently have...
Anyways, that's what I think... what you guys could try is to launch kdialog with :
Code:
LC_ALL="C" kdialog ...

and see if the bug with the desktop integration plugin happens again.. if it does, then the LC_ALL var is the problem, if it doesn't, then the problem might be something else....
@Fenix: thanks for pointing that out, I've now fixed that bug in the latest SVN please try again! thx
@Gus: are you sure you updated correctly? You said "that line", well it should have been 14 lines.. so maybe you didn't update correctly, or something... anyways, make sure you try now with the SVN revision 11163...
Logged

KaKaRoTo
Fenix-TX
Super Power User
**
Offline Offline

Posts: 660


View Profile
« Reply #12 on: May 06, 2009, 08:33:05 am »

Quote from: "kakaroto"

Anyways, that's what I think... what you guys could try is to launch kdialog with :
Code:
LC_ALL="C" kdialog ...

and see if the bug with the desktop integration plugin happens again.. if it does, then the LC_ALL var is the problem, if it doesn't, then the problem might be something else....

Running kdialog with LC_ALL="C" has the same problem.

Quote from: "kakaroto"

@Fenix: thanks for pointing that out, I've now fixed that bug in the latest SVN please try again! thx

Now amsn runs, but the same issue with kdialog.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #13 on: May 06, 2009, 05:18:49 pm »

@fenix: ok thanks, glad to know that the LC_ALL="C" is the one causing the issue with kdialog.. I don't know though why it would not be fixed within the desktop integration plugin... In the firefox thread, it was reported that firefox is now launching in the correct language, so the solution definitely works..
Logged

KaKaRoTo
kjir
Power user
*
Offline Offline

Posts: 133


View Profile
« Reply #14 on: May 07, 2009, 02:46:41 pm »

Commit 11169 should fix this issue, please check!
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!