* NEWS: Mention this.
* zic.c (main): Warn if '-p XXX' is used, unless XXX is '-'.
---
 NEWS  | 3 +++
 zic.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/NEWS b/NEWS
index 30f757df..f095e26a 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,9 @@ Unreleased, experimental changes
     no longer accepts them, as they can cause trouble in both
     localtime.c and its callers.  RFC 9636 prohibits such offsets.
 
+    zic -p now warns that the -p option is obsolete and likely
+    ineffective.
+
 
 Release 2025c - 2025-12-10 14:42:37 -0800
 
diff --git a/zic.c b/zic.c
index d50ad012..6203a75b 100644
--- a/zic.c
+++ b/zic.c
@@ -1286,6 +1286,9 @@ main(int argc, char **argv)
                        case 'p':
                                if (psxrules)
                                  duplicate_options("-p");
+                               if (strcmp(optarg, "-") != 0)
+                                 warning(_("-p is obsolete"
+                                           " and likely ineffective"));
                                psxrules = optarg;
                                break;
                        case 't':
-- 
2.52.0

Reply via email to