Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#10881) "Bosnia & Herzegovina" cause server to crash wi
Home

[Freeciv-Dev] (PR#10881) "Bosnia & Herzegovina" cause server to crash wi

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#10881) "Bosnia & Herzegovina" cause server to crash with ru_RU.UTF-8 locale
From: "Egor Vyscrebentsov" <evyscr@xxxxxxxxx>
Date: Fri, 5 Nov 2004 01:51:11 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10881 >

Good daytime! 
 
CVS S2_0 2004-11-05 11:40 +0300 
 
The translation of the name of Bosnia & Herzegovina in russian is "Босния и 
Герцеговина". This string is about 38 bytes in UTF-8. 
The problem is that it is official name of country, and replacing it with 
something other may be not so good. 
 
Thanks, evyscr. 
 
PS Seems, every letter from russian alphabet takes 2 bytes in UTF-8. 
 
PPS If one wants backtrace... 
Program terminated with signal 6, Aborted. 
#0  0x400c7181 in ?? () 
(gdb) bt 
#0  0x400c7181 in ?? () 
#1  0x400c87a9 in ?? () 
#2  0x400c17d3 in ?? () 
#3  0x0804ba7d in check_strlen () at 
/usr/home/freeciv/freeciv-s2_0/utility/shared.c:603 
#4  0x0804ba9d in loud_strlcpy (buffer=0x834dcc8 "Bosnia & Herzegovina",  
    str=0x843b204 "�\221о�\201ни�\217 и �\223е�\200�\206еговина", 
len=32,  
    errmsg=0x81429a0 "Translated name is too long, truncating: %s") 
    at /usr/home/freeciv/freeciv-s2_0/utility/shared.c:615 
#5  0x080ad950 in translate_data_names () at 
/usr/home/freeciv/freeciv-s2_0/common/game.c:599 
#6  0x08084049 in load_rulesets () at 
/usr/home/freeciv/freeciv-s2_0/server/ruleset.c:3231 
#7  0x0805122c in srv_loop () at 
/usr/home/freeciv/freeciv-s2_0/server/srv_main.c:1692 
#8  0x08050bf5 in srv_main () at 
/usr/home/freeciv/freeciv-s2_0/server/srv_main.c:1644 
#9  0x0804a47d in main (argc=1, argv=0xbffff984) at 
/usr/home/freeciv/freeciv-s2_0/server/civserver.c:170 
#10 0x400b6652 in ?? () 


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#10881) "Bosnia & Herzegovina" cause server to crash with ru_RU.UTF-8 locale, Egor Vyscrebentsov <=