Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
midori prepending invisible unicode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Fri Jan 11, 2013 8:01 pm    Post subject: midori prepending invisible unicode Reply with quote

hi,

Is it normal for midori to prepend save names of pages with invisible unicode?

At first I though it was a case of file corruption, because although files are listed with ls they are unviewable, mv or detectable in any fashion by any other programs. "ls <beginning of url> <tab>" won't autocomplete. Is not even picked up by cursor highlight. Well, there are tricks to view them but no user-friendly.

The character in question is this one <202a>

thnks
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7748
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 11, 2013 8:19 pm    Post subject: Reply with quote

I wouldn't think that was normal. Would you mind pasting a directory listing? In the directory with the problematic files, run
Code:
ls | wgetpaste
and then post the URL. If you haven't emerged wgetpaste yet, do so prior to running the above command.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Fri Jan 11, 2013 8:47 pm    Post subject: Reply with quote

for instance:

Code:
elinks <202a>Linux\ Containers\ and\ Networking\ \|\ Flameeyes\'s\ Weblog.html


notice the <202a>

If I pipe to vim every single line starts with:

Code:
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>
<U+202A>


happens with midori version:

Code:
www-client/midori-0.4.7 unique deprecated
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7748
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 11, 2013 9:09 pm    Post subject: Reply with quote

So, I emerged Midori (current stable as you hadn't replied yet), and then, using it, went to Diego's blog, clicked on a particular blog entry and then right-clicked and selected "Save As". The file name I wrote was faithfully preserved on disk: no funny Unicode prefixed. How are you saving these files?

It's possible that this is a cut/paste artifact as U+202A is a zero width formatting control hint character. In other words, it may be present in the pasted text but you won't be able to see it at all if it is. Try typing a file name yourself and see if the problem persists.

Edit: This is a testing branch problem; the title isn't auto-pasted in the current stable version. In the testing branch version (which is, as I write this, 0.4.7) the auto-paste of the title has this artifact: the invisible character is present. Probably worth a Gentoo (or perhaps an upstream) bug report.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum