Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12686 - mcpp 2.7.2-1 seems not to support long locale names

Attached to Project: Arch Linux
Opened by João M. S. Silva (jmss) - Tuesday, 06 January 2009, 03:45 GMT
Last edited by Jan de Groot (JGC) - Sunday, 08 March 2009, 13:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

mcpp's file mbchar.c line 48 defines:

#define NAMELEN 20

which is not enough for long locale names.

My locale is defined as:

LANG=en_IE.ISO-8859-15@euro
LC_CTYPE="en_IE.ISO-8859-15@euro"
LC_NUMERIC="en_IE.ISO-8859-15@euro"
LC_TIME="en_IE.ISO-8859-15@euro"
LC_COLLATE=C
LC_MONETARY="en_IE.ISO-8859-15@euro"
LC_MESSAGES="en_IE.ISO-8859-15@euro"
LC_PAPER="en_IE.ISO-8859-15@euro"
LC_NAME="en_IE.ISO-8859-15@euro"
LC_ADDRESS="en_IE.ISO-8859-15@euro"
LC_TELEPHONE="en_IE.ISO-8859-15@euro"
LC_MEASUREMENT="en_IE.ISO-8859-15@euro"
LC_IDENTIFICATION="en_IE.ISO-8859-15@euro"
LC_ALL=

Steps to reproduce:

With the new version of mcpp and using a long name locale run xrdb.

I noticed this problem when, after upgrading, my xterm stopped complying with .Xresources. xrdb was crashing with the message "Too long enconding name: en_IE.ISO-8859-15@euro".

I solved this with ABS and using the source file in attachment.
   mbchar.c (32.2 KiB)
This task depends upon

Closed by  Jan de Groot (JGC)
Sunday, 08 March 2009, 13:20 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Tuesday, 06 January 2009, 07:48 GMT
As sidenote: why are you using an ISO8859-15@euro locale while there's a UTF locale for your language?
Comment by João M. S. Silva (jmss) - Tuesday, 06 January 2009, 09:32 GMT
My language is Portuguese. Although it is a beautiful and very rich one, I'm not realy fond of the Portuguese translations, especially for the console, etc.

Once I tried to set the country etc. to Portugal and the language to English with no success.

The reason for using Ireland's english is because they also have EURO currency. But maybe there was other way.

Loading...