Commit graph

8726 commits

Author SHA1 Message Date
hmelder
5df4c5d940 NSTimeZone: Use GetDynamicTimeZoneInformation
tz.StandardName is not always available, does not represent the raw
timezone key from the registry. It appears that ucal_getTimeZoneIDForWindowsID
maps the registry key to a compatible IANA time zone.

The dotnet and flutter implementations also use
GetDynamicTimeZoneInformation and use TimeZoneKeyName.

Here is an example for Asia/Singapore:
StandardTime = Malay Peninsula Standard Time
TimeZoneKeyName = Singapore Standard Time

StandardTime is not registered in the IANA database.
2025-04-18 16:54:15 +08:00
rfm
283ecfe8b2
Merge pull request #493 from gnustep/nsbundle-lang-canonical
NSBundle: fix es.lproj path not generated
2025-04-17 14:49:00 +01:00
rfm
45a43d11eb avoid compiler warning 2025-04-17 14:47:30 +01:00
rfm
9dd9cdc7f0
Merge pull request #501 from gnustep/initializer-return-types
Use instancetype or actual type as initializer return types
2025-04-17 14:43:38 +01:00
Wolfgang Lux
8530df15cb Call the error handler also when a file to be removed does not exist. 2025-04-17 14:16:45 +02:00
rfm
198b18c18a improve error handling 2025-04-16 22:50:49 +01:00
Wolfgang Lux
ddb68e1b29 Use the documented key for the file path when calling the error handler 2025-04-15 16:14:24 +02:00
Frederik Seiffert
bc992f2b75 Use instancetype or actual type as initializer return types 2025-04-09 08:44:00 +02:00
Wolfgang Lux
f6e6b05f48 Fix potential deadlock in NSOperationQueue when exiting a background thread 2025-04-08 16:06:29 +02:00
rfm
b39853e21a ifix for issue #500 2025-04-01 19:42:50 +01:00
rfm
9fadc19f8c Better lock protection of shared instance and cleanup at exit 2025-03-27 09:57:28 +00:00
rfm
ce9699d5c5 Fixup key name that I advised on incorrectly - needs the correct prefix. 2025-03-26 16:16:57 +00:00
Earl Robsham
f8173506cd Add GSDigestURIOmitsQuery key 2025-03-25 19:40:03 -04:00
Earl Robsham
dc4270128d Fix Authorization header generation
Fixes `Authorization` header generation to include the query parameters (if present).
This brings the implementation inline with MacOS, and fixes digest auth with certain picky services.
2025-03-21 17:24:56 -04:00
Frederik Seiffert
80b54d580d Removed unecessary casts 2025-03-19 08:39:42 +08:00
Riccardo Mottola
936e155beb fix missing semi-colon for default clause 2025-03-18 00:35:27 +01:00
Hugo Melder
d3090e2c86 NSBundle: fix es.lproj path not generated
The conversion between BCP 47 language tags and
the old-style language names ('English', 'German', etc) is quite
complex, mapping ISO 639-1 language tags to the old-style names, and
the result back to ISO 639-1 (-ish).

The ISO 639-1 tag for spanish 'es' maps to 'Spanish', which in turn
maps back to 'sp'. The original input is not added to the list
of possible names for 'lproj' folders.

We fix this by operating on the official input, when splitting
language, variant, and region. The "mapped" tag is always added
just to keep 'sp.lproj' working.
2025-03-16 16:42:26 +01:00
rfm
d622530819 tweaks for non-atomic associated values 2025-03-10 12:26:41 +00:00
Richard Frith-Macdonald
667260aa26 Remove useless locking which aso used a function not available when additions are built standalone 2025-03-09 15:38:23 +00:00
Riccardo Mottola
c912f47ca1 fix build ob gcc8, and anyway break after default is safe code style 2025-03-08 18:27:10 +00:00
rfm
a46f86837f associated objects initial implementation 2025-03-08 17:26:32 +00:00
rfm
83e67957bc fix exception for bad launch path 2025-03-06 15:49:41 +00:00
rfm
46c5917d5f Fix race condition on task termination 2025-03-06 12:12:23 +00:00
Richard Frith-Macdonald
db20d02fc0 Use alignment information properly 2025-02-27 14:37:32 +00:00
rfm
956eb5b303 Fix check for object pointer depending on alignment requirement. 2025-02-27 12:15:15 +00:00
rfm
c5debba630 Fix for s390x 2025-02-22 22:41:10 +00:00
Hugo Melder
0f7d6a4b23 NSKVOSupport: Implement legacy KVO API
Implements the setKeys:triggerChangeNotificationsForDependentKey: class
method. Please do not use it. It is fundamentally broken, and requires
the object's meta class to hold additional state.

Keys from this class method are the last resort when retrieving
dependencies via keyPathsForValuesAffectingValueForKey:.
This aligns with the implementation in Foundation.
2025-02-16 09:29:19 +00:00
Wolfgang Lux
5bfbde1e5a Don't install CoreFoundation header when installing base additions on macOS 2025-02-14 17:25:16 +01:00
rfm
d1d5552dfb Fixup for requests with paths containing escaped slashes 2025-02-14 12:34:07 +00:00
rfm
5fa8a06531 Hide some mistakenlt external symbols 2025-02-09 12:49:56 +00:00
rfm
48f01b610d Fix yet another leak 2025-02-06 20:11:08 +00:00
rfm
053c3118a1 More leak fixes 2025-02-06 19:58:32 +00:00
rfm
50e7e10525 Remove incomplete/test API prior to release 2025-01-28 09:47:21 +00:00
rfm
a2e49377c6 complete accidental partial commit 2025-01-27 18:16:07 +00:00
rfm
cedccc9f09 Fixup location of declaration of new ivars 2025-01-27 17:08:30 +00:00
rfm
524daa19ef Fix visibility of symbols exported in error 2025-01-26 19:21:00 +00:00
rfm
9ef3e2f24d Bugfix ... intenral functions should not have public visibility to linker 2025-01-26 19:01:55 +00:00
Hugo Melder
b7d49bd361 NSKVOSwizzling: Check if underlying class differs 2025-01-23 10:07:52 +08:00
Hugo Melder
16dd5c4514 NSKVOSupport: Retrieve the underlying class when adding nested observers 2025-01-23 10:07:52 +08:00
rfm
9236ef986a Note that we want the mutation function exported 2025-01-19 12:30:31 +00:00
rfm
9b4965e100 define function in NSObject.m so that it won't be omitted by clever linkers 2025-01-19 10:23:33 +00:00
rfm
c225efa3ba Implement dast enumeration mutation checks and add testcases for NSPointerArray 2025-01-19 08:42:12 +00:00
rfm
102b290c80 Resolve external subset information for validity checking 2025-01-17 14:46:24 +00:00
rfm
3f7647f15c Fix potential leak is the shared object is initialised more than once. 2025-01-17 12:23:06 +00:00
rfm
f48aca6921 Resolve conflict 2025-01-17 11:19:35 +00:00
rfm
0d70826bbe Merge branch 'xml_sax2' 2025-01-17 11:02:25 +00:00
rfm
c899bccd43 Coding style fixes and performance optimisation 2025-01-17 10:45:47 +00:00
rfm
1d977212f6 Merge branch 'xml_sax2' 2025-01-17 10:44:44 +00:00
rfm
b5e0ef1514 Updates to handle entity resolution for libxml2-2.13.? 2025-01-15 09:23:59 +00:00
Riccardo Mottola
da9dc23a89 try to resolve internal and external subset with functions 2025-01-13 23:28:18 +01:00