Skip to content

Commit bdf347a

Browse files
committed
fix an issue with stdout and unicode data
1 parent 0f61955 commit bdf347a

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed

osm2touch.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def delete_splash(window):
395395

396396
# redirect stdout to file for debug purpose
397397
#f = open("output.log", 'w')
398-
f = open(os.devnull, 'w')
398+
f = open(os.devnull, 'w', encoding='utf-8')
399399
sys.stdout = f
400400

401401
#print(sys.argv)

screenshot/berlinlighttrain.jpg

205 KB
Loading

screenshot/losangeles.jpg

185 KB
Loading

src/pages/CityMap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const CityMap = () => {
238238
onChange={(e) => setLongitude(e.target.value)} />
239239
</label>
240240
<label>{GetLocaleString("citymap.radius")}
241-
<input type="number" value={radius} onChange={(e) => setRadius(e.target.value)} />
241+
<input type="number" value={radius} onChange={(e) => setRadius(e.target.value)} min={40} max={1500}/>
242242
</label>
243243

244244
<h2>Click on the map to get the position</h2>

0 commit comments

Comments
 (0)