Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2004:
[Freeciv-Dev] (PR#11074) 2.0.0-Beta3: freeciv doesn't start in da_DK/da_
Home

[Freeciv-Dev] (PR#11074) 2.0.0-Beta3: freeciv doesn't start in da_DK/da_

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11074) 2.0.0-Beta3: freeciv doesn't start in da_DK/da_DK.UTF-8 locale
From: "Stefan Dirsch" <sndirsch@xxxxxxx>
Date: Thu, 18 Nov 2004 09:58:41 -0800
Reply-to: rt@xxxxxxxxxxx

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

Hi

---

freeciv terminates with "2: lost connection to server" error message
when using da_DK/da_DK.UTF-8 locale.

* How to reproduce: 

  # LC_ALL=da_DK civclient 
[ Start New Game ] 
[ Start ] 
2: lost connection to server 
[ civclient returns to Main Menu ] 
 
The same applies to da_DK.UTF-8. It works fine with de_DE/de_DE.UTF-8
e.g.

---

This looks like a communication problem between
server/client. Starting either the server or client in
da_DK/da_DK.UTF-8 locale results in the follwing error.

a) client in da_DK/da_DK.UTF-8: 
1: Translated name is too long, truncating: Kong Rikard Løvehjertes Korstog 
civclient: shared.c:603: check_strlen: Forudsætningen (assertion) '0' fejlede. 
Aborted 
 
b) server in da_DK/da_DK.UTF-8: 
1: Translated name is too long, truncating: Kong Rikard Løvehjertes Korstog 
civserver: shared.c:603: check_strlen: Forudsætningen (assertion) '0' fejlede. 
Aborted 
 
* How to reproduce: 
# LC_ALL=en_US.UTF-8 civserver 
[...] 
> set aifill 2 
> 
 
# LC_ALL=da_DK.UTF-8 civclient 
[ Connect to Network Game ] 
[ Ok ] 
[ Start ] 
1: Translated name is too long, truncating: Kong Rikard Løvehjertes Korstog 
civclient: shared.c:603: check_strlen: Forudsætningen (assertion) '0' fejlede. 
Aborted 

---

It seems to be related to the length of the string. Replacing "ø" with
"o" does work, but replacing "ø" with "ö" or "oo" does not.

---

A patch to workaround this problem is attached.

Stefan

Public Key available
------------------------------------------------------
Stefan Dirsch (Res. & Dev.)   SUSE LINUX Products GmbH
Tel: 0911-740 53 0            Maxfeldstraße 5
FAX: 0911-740 53 479          D-90409 Nürnberg
http://www.suse.de            Germany 
------------------------------------------------------

--- po/da.po.orig       2004-11-18 16:58:43.000000000 +0100
+++ po/da.po    2004-11-18 17:51:45.148986419 +0100
@@ -17864,7 +17864,7 @@
 #: data/default/buildings.ruleset:1722 data/civ2/buildings.ruleset:1639
 #: data/history/buildings.ruleset:1662
 msgid "King Richard's Crusade"
-msgstr "Kong Rikard Løvehjertes Korstog"
+msgstr "Kong Rikard Lovehjertes Korstog"
 
 #: data/default/buildings.ruleset:1743 data/civ2/buildings.ruleset:1660
 #: data/history/buildings.ruleset:1683

[Prev in Thread] Current Thread [Next in Thread]