Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 94836
Alias:
Product:
Component:
Status: RESOLVED
Resolution: UPSTREAM
Assigned To: Gentoo KDE team <kde@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Antti Mäkelä <zarhan@iki.fi>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
kde.rb kde.rb text/plain Petteri Räty 2005-07-13 08:26 0000 1.61 KB Details
kde.rb kde.rb text/plain Petteri Räty 2005-07-13 09:17 0000 1.61 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 94836 depends on: Show dependency tree
Bug 94836 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-02 09:10 0000
In KDE 3.4.1, .desktop files at /usr/kde/3.4/share/applications/kde have a bug
for their finnish section. Problem has been noted by the localization team, but
unfortunately the fix cannot really be made upstream until 3.4.2 is out.

Can we construct a regexp that would fix the finnish .desktop files (and only
them) during installation? And where can we place it?

Problem comes from the fact that symbol '

------- Comment #1 From Antti Mäkelä 2005-06-02 09:10:47 0000 -------
In KDE 3.4.1, .desktop files at /usr/kde/3.4/share/applications/kde have a bug
for their finnish section. Problem has been noted by the localization team, but
unfortunately the fix cannot really be made upstream until 3.4.2 is out.

Can we construct a regexp that would fix the finnish .desktop files (and only
them) during installation? And where can we place it?

Problem comes from the fact that symbol 'ä' is represented in UTF-8 with À.
Because of corruption (upstream), this has been replaced with ᅵ. So, a
simple 

sed -e 's:ᅵ:À:'

should be enough to fix the problem, but 
a) regexp should be fixed to only include lines including [fi]
b) Where to put this? kde-i18n package is wrong place because it only installs
LC_MESSAGES-files, not .desktop files. So editing of kde-eclass might be
required..

For me personally, running that sed helped, but I only need finnish and
english.

------- Comment #2 From Flammie Pirinen 2005-06-04 00:47:57 0000 -------
I don't use KDE, but something along the lines "s/(\[fi\].*)ᅵ/\1À/g" will at
least replace the first broken 

------- Comment #3 From Flammie Pirinen 2005-06-04 00:47:57 0000 -------
I don't use KDE, but something along the lines "s/(\[fi\].*)ᅵ/\1À/g" will at
least replace the first broken ä from each fi line, someone should be able to
construct a bit more correct solution from that quite easily but I don't have
time to think it more thoroughly now.

As for the placement I suggest eclass' postinst something like pseudocode:
if linguas_fi && kde version 3.4.1; then
ewarn "this KDE has broken encoding in Finnish desktop files, please execute"
ewarn "  sed "s/(\[fi\].*)ᅵ/\1À/g" /blah/blah/*desktop to correct"
endif

------- Comment #4 From Carsten Lohrke 2005-06-12 17:35:42 0000 -------
Sorry, we can only care for critical or security relevant bugs. If you come up
with a patch, we might apply it, otherwise KDE 3.4.2 is good enough.

------- Comment #5 From Petteri Räty 2005-07-12 03:28:25 0000 -------
KDE 3.4.1 is now marked as stable but this bug makes it impossible for me to
switch to  
3.4.1. I look after my grand parent's computer and it is impossible for them to
use nothing  
else than Finnish as the language. I will try to come up with a patch for this. 

------- Comment #6 From Petteri Räty 2005-07-12 03:40:40 0000 -------
Upstream bug: 
http://bugs.kde.org/show_bug.cgi?id=106866 

------- Comment #7 From Petteri Räty 2005-07-13 08:26:55 0000 -------
Created an attachment (id=63315) [details]
kde.rb

This ruby script can be used to fix files installed on the system. It searches
for the string [fi] and then replaces all broken byte secuences with 

------- Comment #8 From Petteri Räty 2005-07-13 08:26:55 0000 -------
Created an attachment (id=63315) [details]
kde.rb

This ruby script can be used to fix files installed on the system. It searches
for the string [fi] and then replaces all broken byte secuences with äs until a
new line is found. Without any arguments it searches /usr/kde/3.4 or it can be
given the files to inspect in the command line. You need to give it the
argument replace and it will replace the system files with fixed ones. This
script could be used on the tarballs to replace the b0rked files. 

------- Comment #9 From Gregorio Guidi (RETIRED) 2005-07-13 08:54:13 0000 -------
This is a good solution for those who have this problem until kde 3.4.2 is 
out, but we won't make a new release of kde 3.4.1 and force everyone to 
recompile because of this issue, the people affected can just wait or fix it 
locally. 
 

------- Comment #10 From Petteri Räty 2005-07-13 09:01:20 0000 -------
I agree that everyone should not be forced to recompile. I think there should
be
something like 
if use linguas_fi; then
    einfo "Finnish translation is broken see"
    einfo "http://bugs.gentoo.org/show_bug.cgi?id=94836"
fi
This could be put to kde eclasses so it would make sure that users find this
solution. 

------- Comment #11 From Petteri Räty 2005-07-13 09:03:24 0000 -------
BTW it is not only .desktop files. At least these types of files seem to be in
the list of broken files:

.deskop
rc-files
.directory
.protocol

------- Comment #12 From Petteri Räty 2005-07-13 09:17:59 0000 -------
Created an attachment (id=63326) [details]
kde.rb

There was ! missing from so the text was wrong:
	if ! $replaceOriginal
		puts 'Searching /usr/kde/3.4 for corrupted files'
	else
		puts 'Fixing non executable files in /usr/kde/3.4'
	end

Also please note that this script changes system files and can harm your kde
install. I have used this script to correct my own install succesfully, but
please be careful.

------- Comment #13 From Antti Mäkelä 2005-07-19 09:52:20 0000 -------
According to
http://developer.kde.org/development-versions/kde-3.4-release-plan.html the
3.4.2 will be released on 27th of July, and knowing Gentoo, it's probably
available for installation the very next day. So if you can wait for like a bit
over a week there is little need for patching. 

------- Comment #14 From Petteri Räty 2005-07-19 10:38:12 0000 -------
3.4.1 is stable so stabilization needs time too 

------- Comment #15 From Eero Volotinen 2005-10-19 03:36:52 0000 -------
(In reply to comment #9)
> Created an attachment (id=63326) [edit] [details]
> kde.rb
> 
> There was ! missing from so the text was wrong:
> 	if ! $replaceOriginal
> 		puts 'Searching /usr/kde/3.4 for corrupted files'
> 	else
> 		puts 'Fixing non executable files in /usr/kde/3.4'
> 	end
> 
> Also please note that this script changes system files and can harm your kde
> install. I have used this script to correct my own install succesfully, but
> please be careful.

Script that you created is not working correctly or instructions to use it is
not enought documented.

For example:

running this script does not fix problems. like ./kde.rb


--
Eero

------- Comment #16 From Petteri Räty 2005-10-19 09:32:54 0000 -------
(In reply to comment #12)
> 
> running this script does not fix problems. like ./kde.rb
> 

1) Do you have ruby installed?
2) did you restart kde?

------- Comment #17 From Eero Volotinen 2005-10-19 10:23:03 0000 -------
(In reply to comment #13)
> (In reply to comment #12)
> > 
> > running this script does not fix problems. like ./kde.rb
> > 
> 
> 1) Do you have ruby installed?
> 2) did you restart kde?

Well, I restarted X using "control-alt-backspace".

--
Eero

------- Comment #18 From Petteri Räty 2005-10-19 11:54:32 0000 -------
IMHO the best solution at this point is to move to using one of the later kde
releases. I will do some digging to find out what is the status of one of the
later releases going stable.

------- Comment #19 From Eero Volotinen 2005-10-19 13:43:13 0000 -------
(In reply to comment #15)
> IMHO the best solution at this point is to move to using one of the later kde
> releases. I will do some digging to find out what is the status of one of the
> later releases going stable.

Yes, but they are masked as testing. This kind of should be fixed in ebuilds.

Usually I use stable as production environments.



--
Eero

------- Comment #20 From Petteri Räty 2005-11-19 17:11:36 0000 -------
3.4.3 is heading towards stable. Watch bug 112842 for details.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug