Comments (12)
Original comment by heartsmagic (2010-04-05T00:34:22Z):
from rednotebook.
Original comment by jwiltshire (2010-07-09T22:15:21Z):
Hi,
Thanks for reporting this bug. I can't reproduce it on a clean Lucid system; please send me the output of locale
from a terminal.
Thanks.
from rednotebook.
Original comment by heartsmagic (2010-07-09T23:39:53Z):
Here is the locale output:
LANG=tr_TR.UTF-8
LC_CTYPE="tr_TR.UTF-8"
LC_NUMERIC="tr_TR.UTF-8"
LC_TIME="tr_TR.UTF-8"
LC_COLLATE="tr_TR.UTF-8"
LC_MONETARY="tr_TR.UTF-8"
LC_MESSAGES="tr_TR.UTF-8"
LC_PAPER="tr_TR.UTF-8"
LC_NAME="tr_TR.UTF-8"
LC_ADDRESS="tr_TR.UTF-8"
LC_TELEPHONE="tr_TR.UTF-8"
LC_MEASUREMENT="tr_TR.UTF-8"
LC_IDENTIFICATION="tr_TR.UTF-8"
LC_ALL=
As a reference please see this bug:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/581207
As explained there:
"TEST CASE:
- install turkish locale:
$ sudo apt-get install language-pack-gnome-tr-base - from a terminal run the following command and note any error message:
$ sudo LC_ALL=tr_TR.UTF8 update-software-center"
You can test this via:
LC_ALL=tr_TR.UTF8 rednotebook
from rednotebook.
Original comment by jwiltshire (2010-07-10T17:48:44Z):
Confirmed in both 0.9.2 and 1.0.0
from rednotebook.
Original comment by jwiltshire (2010-07-10T22:27:58Z):
This patch fixes the problem at startup, but there are still problems when doing a Category search from the cloud box.
from rednotebook.
Original comment by jendrikseipp (2010-07-10T23:14:24Z):
Thanks for looking into that Jonathan. I don't know whether it wouldn't be better to just explicitly call e.g. gtk.STOCK_ITALIC etc. directly instead of that lazy string concatenating...
Do you have an error message when doing a Category search from the cloud box?
from rednotebook.
Original comment by jwiltshire (2010-07-10T23:23:43Z):
That might be better, yes.
Here's the error from a Category search while in tr_TR.UTF-8:
INFO Connected Signals: 1 2 3 6 15 20
ERROR Sorry! Txt2tags aborted by an unknown error.
Please send the following Error Traceback to the author ():
Traceback (most recent call last):
File "/usr/share/rednotebook/rednotebook/util/markup.py", line 233, in convert_to_pango
body, toc = txt2tags.convert(txt, config)
File "/usr/share/rednotebook/rednotebook/external/txt2tags.py", line 5181, in convert
line = add_inline_tags(line)
File "/usr/share/rednotebook/rednotebook/external/txt2tags.py", line 4679, in add_inline_tags
if regex['font%s'%beauti.capitalize()].search(line):
KeyError: 'fontitalic'
from rednotebook.
Original comment by jendrikseipp (2010-07-11T01:03:01Z):
Thanks. The error log shows that of course all external libs and modules cannot be used correctly with tr_TR.UTF-8 either. Do you really think this can/should be fixed in RedNotebook? I think it would make the code less readable, and many modules would have to be checked...
In one thread (http://mail.python.org/pipermail/python-bugs-list/2005-October/030816.html) I read:
I'm not sure what to say to this. My only advice is to not set the global locale setting to TR_tr, but only do this when it comes to actually processsing text in an application.
Do you think setting LC to C when it is tr_TR could be a (really hacky) workaround?
from rednotebook.
Original comment by jwiltshire (2010-07-11T11:28:55Z):
Ok, so there are mostly two problems (that I've found, I can't promise there aren't more):
- trying to start with the Turkish locale crashes the whole application
I don't think it's fair to those who want to use RedNotebook in their locale to just disable it - either of these would fix it:
- just hard code the GTK+ STOCK_* names instead of looping over them
- the patch as attached, which is pretty small - though I have done some further work on it since then
Either way I don't mind patching the Debian and Ubuntu packages for the time being if you're not in a position to make a release yet.
- the problem with category searching
This doesn't crash RedNotebook totally, it just puts some tracebacks into the category box, so it isn't critical - let's just accept that it's a known issue for the time being. If you can work out exactly what's going on (I got a bit lost following that part of the code) and it's txt2tags' fault, then it should be sent upstream for Aurelio to see.
from rednotebook.
Original comment by jendrikseipp (2010-07-12T02:56:39Z):
I chose to "just hard code the GTK+ STOCK_* names instead of looping over them". The patch is in trunk. If you want, you can try it out (https://code.launchpad.net/~jendrikseipp/rednotebook/trunk).
If you want to, you can send the bug upstream to Aurelio.
I don't know when I will be ready to make a release. It might take a while ;)
Thanks, Jendrik
from rednotebook.
Original comment by jwiltshire (2010-07-18T21:58:36Z):
Ok, thanks. I've patched it and I'm waiting for the release team to sync it over from Debian.
from rednotebook.
Original comment by janitor (2010-08-04T22:25:34Z):
This bug was fixed in the package rednotebook - 1.0.0-2
rednotebook (1.0.0-2) unstable; urgency=low
- [e9808c] Enable quilt patch system and add dependency and
README.source - [2968fb] New patch gtk-stock.patch to fix crash when in Turkish
locale (Closes: #588664) (LP: #555425) - [32f521] Standards version 3.9.0 (no changes)
- [102b43] Remove mention of textlive-latex-extra in the description
-- Jonathan Wiltshire Sun, 11 Jul 2010 00:17:20 +0100
from rednotebook.
Related Issues (20)
- Spellcheck doesn't handle apostrophes HOT 4
- lost all data after I asked it to remind me during my next session HOT 3
- Segmentation fault On Ubuntu 23.04 Wayland HOT 3
- Build option for the portable version? HOT 4
- Make rednotebook use the Installation different directory to save cfg, data and log files HOT 3
- Rednotebook crashes shortly after opening, HOT 2
- Fails to launch remotely with X11 forwarding HOT 2
- Preview and word cloud not show HOT 14
- After upgrade, can no longer copy in preview mode HOT 1
- Debians lintian nagging about build-backend. HOT 1
- Remove spellcheck.py and use distro supplied pygtkspellcheck. HOT 3
- Hashtags that happen to contain HEX characters (A - F) and are 6 characters or more are not captured as hashtags HOT 3
- hashtags not shown red in writing mode and bold not shown bold, if making a bullet point list HOT 1
- Change made in commit d2ffc80 - GPL-3.0+ HOT 1
- RNB buttons crash my Gnome session HOT 10
- Copyright message outdated
- Command Line Interface
- Drop python in favor of Windows 7(and earlier) compatibility HOT 1
- Tray icon not showing on Wayland (KDE)
- cloud words and preview mode cannot be seen HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rednotebook.