File: thommy.diff

package info (click to toggle)
sunclock 3.57-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,620 kB
  • sloc: ansic: 14,419; makefile: 815; perl: 111; sh: 33
file content (232 lines) | stat: -rw-r--r-- 6,424 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
--- sunclock-3.56/i18n/Sunclock.de.orig	2004-10-31 22:28:19.000000000 +0100
+++ sunclock-3.56/i18n/Sunclock.de	2006-07-09 13:04:28.000000000 +0200
@@ -1,12 +1,12 @@
 # German
 # Day names
-Son
-Mon
-Die
-Mit
-Don
-Fre
-Sam
+So
+Mo
+Di
+Mi
+Do
+Fr
+Sa
 # Months
 Jan
 Feb
@@ -23,7 +23,7 @@
 # Additional labels
 Position
 GMT Zeit
-Sonnen Zeit
+Sonnenzeit
 Gesetzliche Zeit
 Lnge des Tages
 Sonnenaufgang
@@ -38,47 +38,47 @@
 Klicke auf eine Stadt
 Klicke auf eine Position
 Klicke nacheinander auf zwei Positionen
-Doppel Klicke oder Bettige  fr  ' "
+Doppelklicke oder bettige  fr  ' "
 #
 Taste
-Tastatur/Maus Steuerung
+Tastatur/Maussteuerung
 Abbruch
-Abbruch Men
-Unknown key binding !!
+Men beenden
+Unbekannte Tastenzuordnung !!
 Synchro
 Schrittweite =
 Zeitverschiebung =
 #
-City name
-Timezone
+Stdtename
+Zeitzone
 Latitude
 Longitude
-Size
-Warning: %s, lat = %s lon = %s%salready in list of cities !!
-Overriding previous entry for %s
+Gre
+Warnung: %s, lat = %s lon = %s%sist bereits in der Stdteliste !!
+berschreibe vorhergehenden Eintrag fr %s
 #
 Option
-Activating selected option...
-Option incorrect or not available at runtime !!
-Options: strike <Ctrl><Space> for blank space within an item
-(once)
-(periodically, period %d seconds)
-(with starry sky)
-(blank root window)
-with the following rather long list of options:
-Starting from **, options are runtime configurable
-Calculating new image...
-Sunclock hat eine Reihe interner Prozeduren, auf die per Mausklick oder Tastatur zugegriffen werden kann:
+Ausgewhlte Option aktivieren...
+Ungltige Option bzw. nicht zur Laufzeit whlbar !!
+Optionen: fr ein Leerzeichen eines Eintrags <Ctrl><Space> drcken
+(einmalig)
+(periodisch, alle %d Sekunden)
+(mit starrem Himmel)
+(ohne Fensterinhalt)
+mit der folgenden, lnglichen Optionsliste:
+Beginnend mit ** sind die Optionen zur Laufzeit konfigurierbar
+Berechne neues Bild...
+Sunclock hat eine Reihe interner Funktionen, auf die per Mausklick/Tastatur zugegriffen werden kann:
 # General help
-Zeige die Hilfe und Optionen an (H oder Mausknopf 1)
-Eingabe Erde kartendatei (F oder Mausknopf 2)
+Zeige die Hilfe sowie Optionen an (H oder Mausknopf 1)
+Eingabe Erdekartendatei (F oder Mausknopf 2)
 Zoom (Z oder Mausknopf 3)
-Parameteren der Stdte
-Option command window
+Stdteparameter
+Optionskommandofenster
 Verwende Koordinaten-Modus
 Verwende Sonnenzeit-Modus
 Verwende Abstands-Modus
-Verwende Stunde-Erweiterung-Modus
+Verwende Stunden-Erweiterungs-Modus
 Verwende Modus fr gesetzliche Zeit
 Verschiebe Zeit vorwrts
 Verschiebe Zeit rckwrts
@@ -88,38 +88,38 @@
 Zeichne/Lsche Sonne und Mond
 Zeichne/Lsche Meridiane
 Zeichne/Lsche Parallelen
-Zeichne/Lsche Tropische/quator/Polarkreise
-ffnen ein neues Karte Fenster
-Schlieen das Fenster
-Iconifiziere das Fenster
+Zeichne/Lsche Tropenlinien/quator/Polarkreise
+Neues Kartenfenster ffnen
+Fenster schlieen
+Fenster ikonifizieren
 Kartenfenster auffrischen
-Adjust window width to screen size
-Vorhergehende Fenster Grsse zurck
-Wechsle zwischen Uhr und Kartenfenster
+Fenstergre auf Bildschirmgre aufziehen
+Vorhergende Fenstergre restaurieren
+Wechseln zwischen Uhr und Kartenfenster
 Aktiviere Kommando (-command Option)
-Beende Programm
+Programm beenden
 # Zoom window help
-Activate new zoom settings
-Return to previous zoom settings
-Cancel change in zoom settings
-Set aspect by resizing main window
-Cycle through zoom modes 0,1,2
-Zoom in by factor 1.2
-Zoom out by factor 1/1.2 = 0.833
-Return to zoom factor = 1 (full map)
-Center zoom area on selected city or location
-Synchronize zoom operation
+Neue Vergrerung aktivieren
+Alte Vergrerung restaurieren
+nderung der Vergrerung verwerfen
+Seitenverhltnis durch Fenstergrennderung setzen
+Zwischen Vergrerungen 0, 1 und 2 wechseln
+Vergrerung mit Faktor 1.2
+Verkleinerung mit Faktor 1/1.2 = 0.833
+Ursprngliche Vergrerung mit Faktor = 1 (gesamtes Bild)
+Vergrerung an ausgewhlter Stadt/ausgewhltem Platz zentrieren
+Vergrerungsoperation synchronisieren
 # Option window help
-Activate the option
-Erase the option command line
-Synchronisieren die Fenster oder nicht
-Copy map to root window
-Erase map from root window
-Start/stop animation
+Option aktivieren
+Kommandozeile lschen
+Fenstersynchronisation an oder aus
+Aktuelles Bild als Bildschirmhintergrund
+Bildschirmhintergrund lschen
+Animation starten/stoppen
 # Urban window help
-Use degrees, minutes, seconds, or decimal degrees
-Search/select city
-Modify city parameters
-Create new city location
-Delete city
+Benutze Grade/Minuten/Sekunden oder Dezimalgrade
+Stadt suchen/auswhlen
+Stdteparameter ndern
+Neuen Stdteeintrag anlegen
+Stadt lschen
 # End
--- sunclock-3.56/sunclock.c.orig	2006-06-22 08:21:40.000000000 +0200
+++ sunclock-3.56/sunclock.c	2006-07-09 10:38:14.000000000 +0200
@@ -3142,8 +3142,8 @@
 {
    int ilon, ilat, width, dw = 0;
    struct TextLabel * label;
-   if(!Context->wintype) return;
    char *text, *text0, *ptr;
+   if(!Context->wintype) return;

    label = Context->label;
    while (label) if (label->text && *label->text) {
--- sunclock-3.56/readvmf.c.orig	2006-06-22 11:06:30.000000000 +0200
+++ sunclock-3.56/readvmf.c	2006-07-09 12:16:37.000000000 +0200
@@ -29,6 +29,7 @@
 #include <math.h>
 #ifdef ZLIB
 #include <zlib.h>
+#include <errno.h>		/* (ThMO) */
 #endif

 #include "sunclock.h"
@@ -433,6 +434,8 @@
   char *str, *ptr;
 #ifdef ZLIB
   gzFile * fd;
+  int   plen;
+  char  *zpath;
 #else
   FILE *fd;
 #endif
@@ -460,6 +463,28 @@
     fprintf(stderr, "Loading vector map %s\n", path);
 #ifdef ZLIB
   fd = gzopen(path, "r");
+  #define	Z_PATH_EXT	".gz"
+  #define	Z_PATH_LEN	( sizeof( Z_PATH_EXT)- 1)
+  if ( fd == NULL && errno == ENOENT
+       && ( ( plen= strlen( path)) < Z_PATH_LEN
+            || strcmp( &path[ plen- Z_PATH_LEN], Z_PATH_EXT) != 0))
+    {	/* try to open gzip'd file... (ThMO) */
+  #if	__GNUC__ >= 2
+      zpath= alloca( plen+ Z_PATH_LEN+ 1);
+  #else
+      zpath= salloc( plen+ Z_PATH_LEN+ 1);
+  #endif
+      memcpy( zpath, path, plen);
+      memcpy( zpath+ plen, Z_PATH_EXT, Z_PATH_LEN+ 1);
+      if ( verbose)
+        fprintf( stderr, "Try loading vector map %s\n", zpath);
+      fd= gzopen( zpath, "r");
+  #if	!( __GNUC__ >= 2)
+      free( zpath);
+  #endif
+    }
+  #undef	Z_PATH_EXT
+  #undef	Z_PATH_LEN
 #else
   fd = fopen(path, "r");
 #endif