summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-27 12:51:47 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-27 12:51:47 +0300
commitc821b606c08ee05dae9491b6151ab7d28df0c1f6 (patch)
tree053564e52db6815cb37cce5d71f7bfce6c4ead72
parenta2c5c5e77fb879057c7ae21f1d09f4c6506ad1e5 (diff)
fixes #4850 (Weather: по умолчанию единица температуры должна быть градусом, а не пустой)
-rw-r--r--protocols/Weather/src/weather_opt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Weather/src/weather_opt.cpp b/protocols/Weather/src/weather_opt.cpp
index 18a03ffcf6..d7daf2e4bd 100644
--- a/protocols/Weather/src/weather_opt.cpp
+++ b/protocols/Weather/src/weather_opt.cpp
@@ -96,7 +96,7 @@ void CWeatherProto::LoadOptions(void)
opt.eUnit = getWord("eUnit", 2);
ptrW szValue(getWStringA("DegreeSign"));
- wcsncpy_s(opt.DegreeSign, (szValue == NULL) ? L"" : szValue, _TRUNCATE);
+ wcsncpy_s(opt.DegreeSign, !mir_wstrlen(szValue) ? L"\xB0" : szValue, _TRUNCATE);
opt.DoNotAppendUnit = getByte("DoNotAppendUnit", 0);
opt.NoFrac = getByte("NoFractions", 0);