[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6528] tidy and update use of ISO-Latin
From: |
Gavin D. Smith |
Subject: |
[6528] tidy and update use of ISO-Latin |
Date: |
Fri, 14 Aug 2015 18:57:53 +0000 |
Revision: 6528
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6528
Author: gavin
Date: 2015-08-14 18:57:51 +0000 (Fri, 14 Aug 2015)
Log Message:
-----------
tidy and update use of ISO-Latin
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/info-stnd.texi
trunk/info/info-utils.c
trunk/info/info-utils.h
trunk/info/terminal.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2015-08-14 12:22:50 UTC (rev 6527)
+++ trunk/ChangeLog 2015-08-14 18:57:51 UTC (rev 6528)
@@ -1,5 +1,14 @@
2015-08-14 Gavin Smith <address@hidden>
+ * info/info-utils.c (printed_representation): Remove code
+ looking at value of ISO_Latin_p, which doesn't do anything. (It
+ hasn't done much since the display routines became locale-aware.)
+ * info/terminal.c (ISO_Latin_p): Move declaration of variable to
+ this file.
+ * info/info-stnd.texi (Variables) <ISO-Latin>: Update.
+
+2015-08-14 Gavin Smith <address@hidden>
+
* doc/texinfo.texi (Texinfo Mode): Move to an appendix.
(Command Contexts): Make a top-level appendix. Remove some
unnecessary words.
Modified: trunk/doc/info-stnd.texi
===================================================================
--- trunk/doc/info-stnd.texi 2015-08-14 12:22:50 UTC (rev 6527)
+++ trunk/doc/info-stnd.texi 2015-08-14 18:57:51 UTC (rev 6528)
@@ -2215,12 +2215,16 @@
@item ISO-Latin
@cindex ISO Latin characters
-When set to @code{On}, Info accepts and displays ISO Latin characters;
-the default is @code{Off}, i.e., an ASCII character set.
address@hidden tells Info that it is running in an environment where
-the European standard character set is in use, and allows you to input
-such characters to Info, as well as display them.
address@hidden Meta key sets eighth bit
+The default is @code{On}, which means that Info accepts and displays
+characters represented by bytes with values 128 and above, such as
+characters in the UTF-8 encoding or in various 8-bit ISO Latin
+characters, as well as allowing you to input such characters.
+The only reason to set this variable to @code{Off} would be if your
+terminal set the eighth bit of a byte to represent the Meta key being
+pressed.
+
@item key-time
@cindex slow network connections
Length of time in milliseconds to wait for the next byte of a byte
Modified: trunk/info/info-utils.c
===================================================================
--- trunk/info/info-utils.c 2015-08-14 12:22:50 UTC (rev 6527)
+++ trunk/info/info-utils.c 2015-08-14 18:57:51 UTC (rev 6528)
@@ -43,10 +43,6 @@
#define va_copy(ap1,ap2) memcpy((&ap1),(&ap2),sizeof(va_list))
#endif
-/* When non-zero, various display and input functions handle ISO Latin
- character sets correctly. */
-int ISO_Latin_p = 1;
-
/* Variable which holds the most recent filename parsed as a result of
calling info_parse_xxx (). */
char *info_parsed_filename = NULL;
@@ -498,7 +494,6 @@
printed_representation (mbi_iterator_t *iter, int *delim, size_t pl_chars,
size_t *pchars, size_t *pbytes)
{
- int printable_limit = ISO_Latin_p ? 255 : 127;
struct text_buffer *rep = &printed_rep;
char *cur_ptr = (char *) mbi_cur_ptr (*iter);
@@ -564,14 +559,6 @@
text_buffer_add_char (rep, *cur_ptr | 0x40);
return text_buffer_base (rep);
}
- /* Show META-x as "\370". */
- else if (*(unsigned char *)cur_ptr > printable_limit)
- {
- *pchars = 4;
- *pbytes = 4;
- text_buffer_printf (rep, "\\%0o", *cur_ptr);
- return text_buffer_base (rep);
- }
else if (*cur_ptr == DEL)
{
*pchars = 0;
Modified: trunk/info/info-utils.h
===================================================================
--- trunk/info/info-utils.h 2015-08-14 12:22:50 UTC (rev 6527)
+++ trunk/info/info-utils.h 2015-08-14 18:57:51 UTC (rev 6528)
@@ -30,10 +30,6 @@
# include <iconv.h>
#endif
-/* When non-zero, various display and input functions handle ISO Latin
- character sets correctly. */
-extern int ISO_Latin_p;
-
/* Variable which holds the most recent filename parsed as a result of
calling info_parse_xxx (). */
extern char *info_parsed_filename;
Modified: trunk/info/terminal.c
===================================================================
--- trunk/info/terminal.c 2015-08-14 12:22:50 UTC (rev 6527)
+++ trunk/info/terminal.c 2015-08-14 18:57:51 UTC (rev 6528)
@@ -647,6 +647,10 @@
}
}
+/* When non-zero, various display and input functions handle extended
+ character sets such as ISO Latin or UTF-8 correctly. */
+int ISO_Latin_p = 1;
+
/* Initialize byte map read in get_input_key. */
static void
initialize_byte_map (void)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6528] tidy and update use of ISO-Latin,
Gavin D. Smith <=