Don't accept length of -1 in pg_locale.h APIs.

Jeff Davis <jdavis@postgresql.org>

Commit: 6d22c67c3bf5b50565062a35cbfc46075fb9c276
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2026-05-15T18:09:15Z
Don't accept length of -1 in pg_locale.h APIs.

Reverts ac30021356. Per discussion, that commit interfered with useful
tooling, and was not worth the special cases.

Suggested-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/s32n3tm2mjh247f3xkkxkdk7cf77hglbr3ia3hrsdjylajou7y@nlldpag3tjd5

Files

Discussion