191 |
each unibyte character to a multibyte character. |
each unibyte character to a multibyte character. |
192 |
@end defun |
@end defun |
193 |
|
|
194 |
|
@defun string-to-multibyte string |
195 |
|
This function returns a multibyte string containing the same sequence |
196 |
|
of character codes as @var{string}. If @var{string} is a multibyte |
197 |
|
string, the value is the equal to @var{string}. |
198 |
|
@end defun |
199 |
|
|
200 |
@node Selecting a Representation |
@node Selecting a Representation |
201 |
@section Selecting a Representation |
@section Selecting a Representation |
202 |
|
|
511 |
coding systems that don't specify any other translation table. |
coding systems that don't specify any other translation table. |
512 |
@end defvar |
@end defvar |
513 |
|
|
514 |
|
@defvar translation-table-for-input |
515 |
|
Self-inserting characters are translated through this translation |
516 |
|
table before they are inserted. |
517 |
|
@end defvar |
518 |
|
|
519 |
@node Coding Systems |
@node Coding Systems |
520 |
@section Coding Systems |
@section Coding Systems |
521 |
|
|
898 |
the subprocess, and @var{output-coding} applies to output to it. |
the subprocess, and @var{output-coding} applies to output to it. |
899 |
@end defvar |
@end defvar |
900 |
|
|
901 |
|
@defvar auto-coding-functions |
902 |
|
This variable holds a list of functions that try to determine a |
903 |
|
coding system for a file based on its undecoded contents. |
904 |
|
|
905 |
|
Each function in this list should be written to look at text in the |
906 |
|
current buffer, but should not modify it in any way. The buffer will |
907 |
|
contain undecoded text of parts of the file. Each function should |
908 |
|
take one argument, @var{size}, which tells it how many characters to |
909 |
|
look at, starting from point. If the function succeeds in determining |
910 |
|
a coding system for the file, it should return that coding system. |
911 |
|
Otherwise, it should return @code{nil}. |
912 |
|
|
913 |
|
If a file has a @samp{coding:} tag, that takes precedence, so these |
914 |
|
functions won't be called. |
915 |
|
@end defvar |
916 |
|
|
917 |
@defun find-operation-coding-system operation &rest arguments |
@defun find-operation-coding-system operation &rest arguments |
918 |
This function returns the coding system to use (by default) for |
This function returns the coding system to use (by default) for |
919 |
performing @var{operation} with @var{arguments}. The value has this |
performing @var{operation} with @var{arguments}. The value has this |
1067 |
string is acceptable. |
string is acceptable. |
1068 |
@end defun |
@end defun |
1069 |
|
|
1070 |
|
@defun decode-coding-inserted-region from to filename &optional visit beg end replace |
1071 |
|
This function decodes the text from @var{from} to @var{to} as if |
1072 |
|
it were being read from file @var{filename} using @code{insert-file-contents} |
1073 |
|
using the rest of the arguments provided. |
1074 |
|
|
1075 |
|
The normal way to use this function is after reading text from a file |
1076 |
|
without decoding, if you decide you would rather have decoded it. |
1077 |
|
Instead of deleting the text and reading it again, this time with |
1078 |
|
decoding, you can call this function. |
1079 |
|
@end defun |
1080 |
|
|
1081 |
@node Terminal I/O Encoding |
@node Terminal I/O Encoding |
1082 |
@subsection Terminal I/O Encoding |
@subsection Terminal I/O Encoding |
1083 |
|
|
1273 |
locale is specified by environment variables in the usual POSIX fashion. |
locale is specified by environment variables in the usual POSIX fashion. |
1274 |
@end defvar |
@end defvar |
1275 |
|
|
1276 |
|
@defun locale-info item |
1277 |
|
This function returns locale data @var{item} for the current POSIX |
1278 |
|
locale, if available. @var{item} should be one of these symbols: |
1279 |
|
|
1280 |
|
@table @code |
1281 |
|
@item codeset |
1282 |
|
Return the character set as a string (locale item @code{CODESET}). |
1283 |
|
|
1284 |
|
@item days |
1285 |
|
Return a 7-element vector of day names (locale items |
1286 |
|
@code{DAY_1} through @code{DAY_7}); |
1287 |
|
|
1288 |
|
@item months |
1289 |
|
Return a 12-element vector of month names (locale items @code{MON_1} |
1290 |
|
through @code{MON_12}). |
1291 |
|
|
1292 |
|
@item paper |
1293 |
|
Return a list @code{(@var{width} @var{height})} for the default paper |
1294 |
|
size measured in milimeters (locale items @code{PAPER_WIDTH} and |
1295 |
|
@code{PAPER_HEIGHT}). |
1296 |
|
@end table |
1297 |
|
|
1298 |
|
If the system can't provide the requested information, or if |
1299 |
|
@var{item} is not one of those symbols, the value is @code{nil}. All |
1300 |
|
strings in the return value are decoded using |
1301 |
|
@code{locale-coding-system}. @xref{Locales,,, libc, GNU Libc Manual}, |
1302 |
|
for more information about locales and locale items. |
1303 |
|
@end defun |