From c5504d100573499a9ac373e71627d1b8ccb1f64f Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 28 Dec 2014 20:32:53 +0200 Subject: [PATCH] src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458) --- src/ChangeLog | 4 ++++ src/w32proc.c | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 3ea60571a15..94f07c88c0f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2014-12-28 Eli Zaretskii + + * w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458) + 2014-12-28 Paul Eggert Port memory-full checking to GnuTLS 3.3 diff --git a/src/w32proc.c b/src/w32proc.c index 96f11657892..408230ca90a 100644 --- a/src/w32proc.c +++ b/src/w32proc.c @@ -3054,7 +3054,12 @@ If successful, the new CP is returned, otherwise nil. */) DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, Sw32_get_codepage_charset, 1, 1, 0, doc: /* Return charset ID corresponding to codepage CP. -Returns nil if the codepage is not valid. */) +Returns nil if the codepage is not valid or its charset ID could +not be determined. + +Note that this function is only guaranteed to work with ANSI +codepages; most console codepages are not supported and will +yield nil. */) (Lisp_Object cp) { CHARSETINFO info; -- 2.39.2