Bug 4656 - Compose crashes when Bulgarian dictionary is added
Summary: Compose crashes when Bulgarian dictionary is added
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (Windows)
Classification: Unclassified
Component: default (show other bugs)
Version: 4.1.1
Hardware: PC Windows 7
: P3 normal
Assignee: Jonathan Boeing
URL:
Depends on:
Blocks:
 
Reported: 2023-01-04 11:46 UTC by Ivailo Andonov
Modified: 2023-01-05 11:57 UTC (History)
0 users

See Also:


Attachments
Message when Compose is hit and BG dic is not in the folder and not selected (30.65 KB, image/jpeg)
2023-01-04 11:46 UTC, Ivailo Andonov
Details
Cristi's comment screenshot for red words (158.19 KB, image/jpeg)
2023-01-05 09:16 UTC, Ivailo Andonov
Details

Description Ivailo Andonov 2023-01-04 11:46:17 UTC
Created attachment 2316 [details]
Message when Compose is hit and BG dic is not in the folder and not selected

I added the bg_BG.aff and bg_BG.dic as described in https://www.claws-mail.org/win32/dictionaries.php
The dictionary doesn't appear in the list in the Preferences windows. Then I added it in C:\Program Files\Claws Mail\share\enchant\myspell instead because that did the job in 3.18.0.
Now the dictionary appears in the list but when I hit Compose button Claws closes with:
Problem signature:
  Problem Event Name:	APPCRASH
  Application Name:	claws-mail.exe
  Application Version:	4.1.1.0
  Application Timestamp:	00000000
  Fault Module Name:	libglib-2.0-0.dll
  Fault Module Version:	2.72.4.0
  Fault Module Timestamp:	00000000
  Exception Code:	c0000005
  Exception Offset:	0000000000017294
  OS Version:	6.1.7601.2.1.0.256.1
  Locale ID:	1026
  Additional Information 1:	de83
  Additional Information 2:	de83ea2e0bac657dc83b2a5464de3fa5
  Additional Information 3:	bed2
  Additional Information 4:	bed205d97f58d7b5c9813b49a9430c2d

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\Windows\system32\en-US\erofflps.txt

I tried to change the bg_BG.aff and bg_BG.dic encodings to UTF-8 because en_US.aff and en_US.dic have this encoding but this doesn't help.

Interesting fact is that when I remove the BG dictionary and in Preferences window other dictionaries are selected when I click the Compose button the message in the attachment appears
Comment 1 Ivailo Andonov 2023-01-04 11:50:18 UTC
I'm sorry! I did a mistake in the explanation. I fist added the files in 
C:\Program Files\Claws Mail\share\enchant\myspell
It didn't appear in the list of dictionaries an the I added the files in 
C:\Program Files\Claws Mail\share\enchant\hunspell
Comment 2 Cristian Secară 2023-01-04 19:37:51 UTC
Out of curiosity, I checked now and there was no problem.

What I did:
- I added the Bulgarian dictionary in my LibreOfficeDev 7.4.x existing install
- I simply copied the files bg_BG.aff and bg_BG.dic from C:\Program Files\LibreOfficeDev 7\share\extensions\dict-bg to C:\Program Files\Claws Mail\share\enchant\hunspell
- I made a new message in Claws Mail and selected bg_BG dictionary from the available options
- I entered a random phrase copied from bg.wikipedia.org:

===
Уикипедия ви поздравява с настъпилите празници и ви пожелава една изпълнена с надежда и оптимизъм 2022 година, в която вярата в силата на знанията, в образованието и науката и във вътрешния ни стремеж към прогрес и благоденствие за всяко човешко същество ще помогне животът на всички ни да бъде по-добър, по-светъл и по-радостен!
===

- except that the first word (Уикипедия) appears red, nothing strange happened
- I send the test message successfully
- I received the message successfully

Claws Mail 4.1.1 on Windows 8.1 (x64) here.

??

Cristi
Comment 3 Cristian Secară 2023-01-04 22:11:42 UTC
(In reply to Cristian Secară from comment #2)

> Claws Mail 4.1.1 on Windows 8.1 (x64) here.

I forgot to mention, just in case (but I am sure this is totally irrelevant for the discussion here): my system locale is set to Romanian, Claws Mail UI also in Romanian, but I also retook the test with Claws Mail started with ru interface (with 'set lang=ru'), as bg does not seem to be available: all tests performed equally well, without any trouble.

I suggest to drop/trash the bg dictionary from that OpenOffice page, since it is a prehistoric version with cp1251 8-bit encoding and use the one from 
LibreOffice, which is Unicode UTF-8 native:
https://github.com/LibreOffice/dictionaries/tree/master/bg_BG

Cristi
Comment 4 Ivailo Andonov 2023-01-05 09:15:34 UTC
Thank you Cristi!

The issue I described happened while I was following the instructions opened when I followed the link for additional dictionaries in 4.1.1 Preferences menu. Maybe some update is needed there. 
I got the files from the place you suggested and now Claws doesn't crash. It doesn't  work well either though. These words appear in red:
Уикипедия ви една изпълнена с надежда и на знанията, в образованието към прогрес благоденствие за на всички по
Except "Уикипедия" which is a name and probably the dictionary doesn't know it all of the rest are correct. I attached the screenshot.

Are the bg_BG.aff and bg_BG.dic files you are using the same as on https://github.com/LibreOffice/dictionaries/tree/master/bg_BG ?

Best Regards
Ivo
Comment 5 Ivailo Andonov 2023-01-05 09:16:52 UTC
Created attachment 2317 [details]
Cristi's comment screenshot for red words

Note You need to log in before you can comment on or make changes to this bug.