Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Sep 2014, 22:37
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
No french keyboard in Racy
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
ccaaee

Joined: 27 Feb 2010
Posts: 23

PostPosted: Fri 03 Feb 2012, 09:59    Post_subject:  No french keyboard in Racy
Sub_title: No french keyboard in Racy
 

The french keymap seems to be left out of Racy

Don't get me wrong, I LOVE Puppy Linux. But I'm about to go crazy trying to get a french keyboard to work in Racy. Normally this shouldn't be too hard but try navigating using a keyboard where all the (\|/?.><Winks can't be found.

Could anyone please tell me what files I have to put in what paths so I could at least type setxkbmap fr.

Thanks

ccaaee
Back to top
View user's profile Send_private_message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 09 Feb 2012, 13:02    Post_subject:  

The version of xkbcomp in Racy 5.2.2 has trouble interpreting the symbols file for the fr layout. This confuses it and causes it to give a misleading error message:
/usr/X11R7/bin/xkbcomp wrote:
syntax error: line 1 of pc/latin
last scanned symbol is: abovedot
Error: Error interpreting include file "pc/latin"
Exiting
Abandoning symbols file "basic"
Abandoning symbols file "(null)"

Actually, the pc/latin file is fine. It turned out to be the pc/fr file that was confusing things.

I suspect that it is not the fault of the pc/fr file, since it hasn't changed since earlier Puppies, where it worked fine with an older version of xkbcomp. This is probably a bug in xkbcomp.

Eventually I determined that xkbcomp is unhappy with only a single character in the pc/fr file. That character is buried in a long comment which describes the "latin9" variant, specifically in a table illustrating the layout. (One would not expect that a utility would choke on something buried in a comment, and yet it does. This increases my belief that xkbcomp itself is the culprit.)

I've tried the latest version of xkbcomp (1.2.3), but it chokes as well.

So, until that gets fixed (if it is indeed the culprit), I have removed the character from the pc/fr symbol file (and added a note explaining what character belongs in the hole I left behind, without using the character itself). Remember, this is in a comment, so does not affect the actual data in the file.

I have attached the revised file. Simply gunzip it and copy it to the /etc/X11/xkb/symbols/pc/ directory. Then try again to change your layout.

Please let me know if this works for you.

I will look into this further. It is remotely possible the standard format for symbol files has been revised, and our pc/fr file is no longer compliant. In which case xkbcomp would be innocent. But I strongly doubt that.

By the way, I've grepped the xkb tree and found no other data files using the character in question (which is ÿ (Unicode point: U+00FF, Unicode name: LATIN SMALL LETTER Y WITH DIAERESIS)). So this problem should not come back to haunt us in other layouts.
fr.gz
Description  Revised /etc/X11/xkb/symbols/pc/fr
gz

 Download 
Filename  fr.gz 
Filesize  4.64 KB 
Downloaded  299 Time(s) 
Back to top
View user's profile Send_private_message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Wed 15 Feb 2012, 16:45    Post_subject:  

I made some time to look into this further.

This problem does, in fact, result from a bug in xkbcomp.

The good news is that somebody already wrote a patch to fix this.

The bad news is that the patch was never applied.

In June of 2010, somebody made some modifications to xkbscan.c, part of the source for xkbcomp. He decided to "Use fread() instead of getc()". While that was a good idea, he inadvertently introduced this bug.

Apparently the function he wrote that used fread() used an array of chars for the buffer, and returned one char from that buffer. The problem was that the char 0xff equates to -1, which is also used to indicate end of file, so this confused the caller. (The function he replaced, getc() returns an integer, and since int 0xff equates to 256, the caller could distinguish it from EOF.)

OK, I've probably given more detail than necessary here already, but if curious you can see the discussion at: http://patchwork.freedesktop.org/patch/3671/

There was some discussion about reverting the changes that caused this bug, instead of keeping them and applying the patch. Perhaps they never decided which to do, and so did neither.

I have tried the latest xkbcomp (xkbcomp 1.2.3, dated 2011-06-24) which I found in the package x11-xkb-utils (7.6+4). This version still fails.

And the current source code for xkbscan.c at cgit.freedesktop.org (dated 2011-12-29) has not had the patch applied.

I have written to Matthieu Herrb, who reviewed the patch back in January 2011, to alert him to this. Perhaps he will finally get this fixed.

In the meantime, the modified symbol file (fr) that I posted earlier should solve the immediate problem.
Back to top
View user's profile Send_private_message 
esmourguit


Joined: 17 Nov 2006
Posts: 1288
Location: Sur l'ile aux oiseaux.

PostPosted: Thu 16 Feb 2012, 07:38    Post_subject:  

Bonjour à tous,

A big thank you npierce, I could get the French keyboard. BK has posted a package see his blog

Cordialement,
Wink

_________________
Toutou Linux - Pets francisés
Back to top
View user's profile Send_private_message 
Pelo


Joined: 10 Sep 2011
Posts: 3123
Location: Mer méditerrannée (1 kms°)

PostPosted: Wed 08 Aug 2012, 10:03    Post_subject: Oui mais, quand un français charge la distro
Sub_title: yes but when a french guy as me loads Racy 5.2.2 NOP
 

The problem is still here. Why hav'nt you corrected the ISO in your repositery ? This morning I decided to trash it as soon i have to burn a new one.

Further more the distro does not bring lot of improvment. Tonight, i shall repair it with french keyboard, it gives it a chance to survive.


Racy 5.3.3 is very safe, no problem, but i like some fantasy time to time.

Dom Pelo de Franciano, no ! trash !
Back to top
View user's profile Send_private_message YIM 
Pelo


Joined: 10 Sep 2011
Posts: 3123
Location: Mer méditerrannée (1 kms°)

PostPosted: Sun 09 Sep 2012, 22:18    Post_subject: Puppy customers are not only british or their cousins
Sub_title: un coup de colère
 

pourriez-vous sortir une distro avec un clavier en ou us ne fonctionnant pas ?

Do you imagine releasing a new puppy with us keyboard not working ?
NO ? Some puppies still release without fr keyboard. People dont test before ? (on major languages). Are puppies for the poor people with old computers or for very clever students speaking english and computing very well ?
I love Puppies, nevertheless.
Back to top
View user's profile Send_private_message YIM 
Pelo


Joined: 10 Sep 2011
Posts: 3123
Location: Mer méditerrannée (1 kms°)

PostPosted: Sun 09 Sep 2012, 22:22    Post_subject: Racy works well now.
Sub_title: But tell it to Macpup (529 issue) to verify keymaps
 

But tell it to Macpup (529 issue) to verify keymaps. Thanks for coop. Merci beaucoup.
Back to top
View user's profile Send_private_message YIM 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0663s ][ Queries: 13 (0.0064s) ][ GZIP on ]