diff options
| author | Eli Zaretskii | 2019-02-04 18:05:59 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-02-04 18:05:59 +0200 |
| commit | f37000aeb2b987c0fb14b6770fef69eaf274167a (patch) | |
| tree | af50afbb4fd52389a11ae8259d2f18ccd081ce61 /nt | |
| parent | d5f629d193ffe88c464379f02dd2adaadc9dfdf0 (diff) | |
| download | emacs-f37000aeb2b987c0fb14b6770fef69eaf274167a.tar.gz emacs-f37000aeb2b987c0fb14b6770fef69eaf274167a.zip | |
Support (locale-info 'paper) on MS-Windows
* src/w32proc.c (LOCALE_IPAPERSIZE): Define if undefined.
(nl_langinfo): Support _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT
like glibc does.
* src/fns.c (Flocale_info): Update the doc string.
* nt/inc/langinfo.h: Add _NL_PAPER_WIDTH and _NL_PAPER_HEIGHT
to the enumeration.
(_NL_PAPER_WIDTH, _NL_PAPER_HEIGHT): Define namesake macros.
* nt/mingw-cfg.site (emacs_cv_langinfo__nl_paper_width): Set
to 'yes'.
* doc/lispref/nonascii.texi (Locales): Update the
documentation of 'locale-info' for the argument of 'paper'.
* etc/NEWS: Update the locale-info entry.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/inc/langinfo.h | 4 | ||||
| -rw-r--r-- | nt/mingw-cfg.site | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/nt/inc/langinfo.h b/nt/inc/langinfo.h index fc69068969e..6c4959ecb54 100644 --- a/nt/inc/langinfo.h +++ b/nt/inc/langinfo.h | |||
| @@ -27,6 +27,7 @@ enum { | |||
| 27 | DAY_1, DAY_2, DAY_3, DAY_4, DAY_5, DAY_6, DAY_7, | 27 | DAY_1, DAY_2, DAY_3, DAY_4, DAY_5, DAY_6, DAY_7, |
| 28 | MON_1, MON_2, MON_3, MON_4, MON_5, MON_6, MON_7, MON_8, MON_9, MON_10, | 28 | MON_1, MON_2, MON_3, MON_4, MON_5, MON_6, MON_7, MON_8, MON_9, MON_10, |
| 29 | MON_11, MON_12, | 29 | MON_11, MON_12, |
| 30 | _NL_PAPER_WIDTH, _NL_PAPER_HEIGHT, | ||
| 30 | 31 | ||
| 31 | /* Number of enumerated values. */ | 32 | /* Number of enumerated values. */ |
| 32 | _NL_NUM | 33 | _NL_NUM |
| @@ -55,6 +56,9 @@ enum { | |||
| 55 | #define MON_11 MON_11 | 56 | #define MON_11 MON_11 |
| 56 | #define MON_12 MON_12 | 57 | #define MON_12 MON_12 |
| 57 | 58 | ||
| 59 | #define _NL_PAPER_WIDTH _NL_PAPER_WIDTH | ||
| 60 | #define _NL_PAPER_HEIGHT _NL_PAPER_HEIGHT | ||
| 61 | |||
| 58 | extern char *nl_langinfo (nl_item); | 62 | extern char *nl_langinfo (nl_item); |
| 59 | 63 | ||
| 60 | #endif /* _LANGINFO_H */ | 64 | #endif /* _LANGINFO_H */ |
diff --git a/nt/mingw-cfg.site b/nt/mingw-cfg.site index d9a824008cb..4df20494921 100644 --- a/nt/mingw-cfg.site +++ b/nt/mingw-cfg.site | |||
| @@ -109,6 +109,7 @@ gl_cv_func_pthread_sigmask_return_works=yes | |||
| 109 | gl_cv_func_pthread_sigmask_unblock_works="not relevant" | 109 | gl_cv_func_pthread_sigmask_unblock_works="not relevant" |
| 110 | # Implemented in w32proc.c | 110 | # Implemented in w32proc.c |
| 111 | emacs_cv_langinfo_codeset=yes | 111 | emacs_cv_langinfo_codeset=yes |
| 112 | emacs_cv_langinfo__nl_paper_width=yes | ||
| 112 | # Declared in ms-w32.h | 113 | # Declared in ms-w32.h |
| 113 | ac_cv_have_decl_alarm=yes | 114 | ac_cv_have_decl_alarm=yes |
| 114 | # Avoid including the gnulib dup2 module | 115 | # Avoid including the gnulib dup2 module |