Hi!
I'm using Geany 1.22 on Fedora Linux.
The problem:
reST formatted text containing Non-ASCII characters (e.g. German umlauts)
in section titles isn't properly shown in Geany's "Symbols" window: Those Non-ASCII titles aren't shown at all.
Reason:
The implemented vStringLength(name) counts the bytes and not the characters of the title. In utf-8/16 that may not be the same...
Comparing it to the length of the title adornment (line of underlines) gives wrong results.
Solution (at least for utf-8):
Do not count the utf-8 continuation bytes any longer.
I attached a simple solution by recalculating name_len.
Since I'm not a C-coder that solution might not be perfect, but for me it works.
Christian
Colomban Wendling
Filetypes
v1.23
Public
|
Date: 2012-10-18 08:32:49 PDT I fixed it slightly differently in Git for better handling of non-UTF-8 |
|
Date: 2012-10-18 03:39:12 PDT Since the text being parsed is always UTF-8 your simple solution should |
| Filename | Description | Download |
|---|---|---|
| geany.diff | Diff file for tagmanager/rest.c | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| resolution_id | Accepted | 2012-10-18 08:32:49 PDT | colombanw |
| assigned_to | nobody | 2012-10-18 08:32:49 PDT | colombanw |
| close_date | - | 2012-10-18 08:32:49 PDT | colombanw |
| status_id | Open | 2012-10-18 08:32:49 PDT | colombanw |
| artifact_group_id | None | 2012-10-18 08:32:49 PDT | colombanw |
| resolution_id | None | 2012-10-18 03:39:12 PDT | elextr |
| File Added | 455033: geany.diff | 2012-10-18 02:52:28 PDT | chziemski |