akallabeth
a3aa01214c
[resource root] unify locations
...
unify resource locations in case WITH_BINARY_VERSIONING is set.
2024-10-25 11:40:40 +02:00
akallabeth
7ea8774728
Update timezone definitions
2024-10-12 07:08:14 +00:00
akallabeth
d56fac7582
[ci,timezone] remove clang-format off
...
we do format the files now properly before creating the automated pull,
the workaround is no longer required
2024-10-12 09:04:39 +02:00
akallabeth
969e212570
[winpr,timezone] skip newline in generated timezonemap
2024-10-12 08:51:00 +02:00
akallabeth
2cbb5685b4
[winpr,timezone] deactivate clang-format for generated files
2024-10-11 09:16:37 +02:00
akallabeth
6c8c67b385
Merge pull request #10677 from akallabeth/int-narrow
...
Int narrow
2024-10-03 21:17:56 +02:00
akallabeth
4a0f996d42
[winpr,timezone] fix integer narrow
2024-10-03 18:58:37 +02:00
akallabeth
574742bae8
[warnings] annotate readability-non-const-parameter
2024-10-01 13:05:19 +02:00
akallabeth
26003e59cc
[va_list] initialize with ={0};
2024-09-24 11:06:18 +02:00
akallabeth
586f40631f
[warnings] fix shorten-64-to-32
2024-09-17 16:13:48 +02:00
akallabeth
cd18dea174
[return checks] fix use of unicode functions
2024-09-16 06:48:26 +02:00
akallabeth
71080e61b0
[warnings] fix a bunch of them
...
* fix uninitialized variable warnings
* modivy ndr_context_* functions to utilize WINPR_ATTR_MALLOC
* build_krbtgt use winpr_asprintf
* add proper Stream_Write_UINT64_BE
2024-09-14 08:24:28 +02:00
akallabeth
66153045be
[winpr,timezone] Include TimeZoneNameMap as header
...
* Update tzextract to generate header
* Update TimeZoneNameMapUtils to include header
2024-09-11 23:41:58 +02:00
akallabeth
398efacb10
Update timezone definitions
2024-09-11 05:06:45 +00:00
akallabeth
5e123735fa
[warnings] fixed sign-compare
2024-09-04 10:14:05 +02:00
akallabeth
1d33095500
[warnings] fix cert-err33-c
...
Fix unused return values, cast to void if on purpose
2024-08-29 10:19:27 +02:00
Armin Novak
b2e15b5f75
[winpr,timezone] disable clang-format for WindowsZones
2024-08-12 10:49:10 +02:00
akallabeth
70e9f4c5ea
Create timezone-update.yml
2024-07-23 14:26:23 +02:00
Armin Novak
6133ee6da0
[winpr,timezone] update from tzextract
...
* Update existing data
* Add new file TimeZoneNameMap.json
* Add CMake install target for TimeZoneNameMap.json
2024-07-19 14:02:12 +02:00
akallabeth
f8405d5a4a
[winpr,timezone] add JSON generation to tzextract
2024-07-19 14:02:06 +02:00
akallabeth
bb360fbbdc
[winpr,timezone] Add new options to load from file
...
* WITH_TIMEZONE_FROM_FILE allows loading timezone definitions from a JSON
file. (Requires WITH_WINPR_JSON, default OFF)
* WITH_TIMEZONE_COMPILED allows loading timezone definitions from an
compiled in array. (Default ON)
Both of these options can be combined in any order. The data loaded from
file takes preference over compiled in values.
2024-07-19 13:23:03 +02:00
akallabeth
962a996dd9
[winpr,timezone] encapsulate timezonemap
2024-07-19 11:39:49 +02:00
akallabeth
6c682c8418
[client,common] add option to set timezone
...
* /timezone now allows setting the timezone used from a windows timezone
key name
* /list:timezones now lists all available windows timezone key names
2024-07-19 11:39:46 +02:00
akallabeth
9eb484b21b
[winpr,timezone] implement EnumDynamicTimeZoneInformation
2024-07-19 11:39:41 +02:00
akallabeth
6e1e35590e
[winpr,timezone] reduce log verbosity
2024-06-27 09:48:34 +02:00
akallabeth
3c4c827358
[winpr,timezone] Fix GetDynamicTimeZoneInformation
...
* Improve logging, use single function to dump data.
* Use GetDynamicTimeZoneInformation as man getter,
GetTimeZoneInformation only retrieves a subset.
2024-06-26 20:59:43 +02:00
Armin Novak
85078bf8c8
[winpr,timezone] fix transition date detection
2024-06-24 14:45:09 +02:00
akallabeth
0431b6c116
[winpr,timezone] fix windows timezone mappings
...
* WINDOWS_TZID_ENTRY struct members were inverted
* Entries with multiple IANA entries (separated by space) are now each
checked for a match
2024-06-24 11:30:25 +02:00
akallabeth
c07ba558cb
[warnings] fix various compiler warnings
2024-06-04 13:23:24 +02:00
akallabeth
15fc460c6f
[winpr,timezone] remove struct from struct DIR
...
fix #10176
2024-05-12 20:19:13 +02:00
akallabeth
a86ca848d5
[winpr,timezone] fix NULL strdup
2024-05-12 20:17:06 +02:00
Armin Novak
474e3fa983
[winpr,timezone] fix missing const
2024-05-08 14:53:39 +02:00
akallabeth
95a7f5019a
[winpr,timezone] fix clang-tidy warnings
2024-05-08 10:08:08 +02:00
akallabeth
f9443a080e
[utils,doc] update timezone sync procedure
...
* add new C# utility to generate timezone mappings
* update procedure to follow for updating timezones
* remove obsolete TimeZones.csx script
* update generated files with new tool
2024-05-08 10:08:08 +02:00
akallabeth
277907d810
[winpr,timezone] add C# timezone extractor
2024-05-08 10:08:08 +02:00
akallabeth
cd18532f45
[winpr,timezone] add IANA to short mapping
...
* Add a generator for IANA and short zone name mappings.
* Add a function to get all IANA mappings for a short zone name.
2024-05-08 10:08:08 +02:00
akallabeth
52a884ed2e
[winpr,timezone] refactor timezone mapping
...
* add option to use ICU as a fallback mapping (eliminate need for
WindowsZones mapping list)
* extract timezone related settings from localtime_r and eliminate the
need to parse the complex TimeZones table
* Add new TimeZoneNameMap to map IANA to windows names (Id, Standard,
Daylight and Display names)
* Implement GetDynamicTimeZoneInformation
2024-05-08 10:08:08 +02:00
akallabeth
8b382c8cec
[winpr,timezone] update
...
* update windowsZones.xml url
* update timezones
2024-04-23 09:54:52 +02:00
akallabeth
4e756306b9
[winpr,timezone] fix unused result warnings
2024-04-21 11:00:47 +02:00
Mike Gilbert
445bd9a80c
winpr: fix fallback timezone name
...
Populate StandardName and DaylightName with 2-byte WCHAR values instead
of 4-byte wchar_t values on Linux.
2024-04-20 21:19:59 +02:00
Mike Gilbert
ca8c71a208
winpr: improve timezone detection when TZ is set
...
The TZ variable may either contain a direct timezone representation, or
a reference to a file in tzfile(5) format. Mapping a direct timezone
representation to a Windows timezone would be difficult.
According to tzset(3), a file reference should start with a colon, though
glibc treats it as optional. It may be an absolute path or a path relative
to /usr/share/zoneinfo. Adjust winpr_detect_windows_time_zone to accept
either.
2024-04-20 21:19:59 +02:00
akallabeth
92ed8b3916
[winpr,timezone] outside definition timezone file
...
allow defining the filepath of timezone file in buildsystem adjusting it
without a required code change.
2024-03-20 09:11:08 +01:00
akallabeth
d7ebec5a65
[tidy] move loop variable declaration to loop
2024-02-22 12:31:50 +01:00
akallabeth
0ba995655d
[clang-tidy] cppcoreguidelines-init-variables
2024-02-15 11:49:16 +01:00
akallabeth
207def5c56
[clang-tidy] readability-isolate-declaration
2024-02-15 11:49:16 +01:00
Armin Novak
b97a5448d2
update timezones
2023-08-01 17:18:22 +02:00
Armin Novak
a4c6b36a19
[build] fix memory sanitizer stack frame warnings
2023-06-07 09:14:45 +02:00
Armin Novak
641022b795
[logging] remove __FUNCTION__ from actual message
...
prefer the log formatter to provide that information.
2023-01-25 16:26:39 +01:00
akallabeth
92d3e3c64a
[winpr] use WINPR_ prefix for conditional includes
2023-01-10 17:38:00 +01:00
akallabeth
5799fb2018
Replace ConvertFromUnicode and ConvertToUnicode
...
* Use new ConvertUtf8ToWChar, ConvertUtf8NToWChar,
ConvertUtf8ToWCharAlloc and ConvertUtf8NToWCharAlloc
* Use new ConvertWCharToUtf8, ConvertWCharNToUtf8,
ConvertWCharToUtf8Alloc and ConvertWCharNToUtf8Alloc
* Use new Stream UTF16 to/from UTF8 read/write functions
* Use new settings UTF16 to/from UTF8 read/write functions
2022-11-28 10:42:36 +01:00