| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -104,23 +104,24 @@ check_force_ascii(void) | |||
| 104 | 104 | char *loc; | |
| 105 | 105 | #if defined(HAVE_LANGINFO_H) && defined(CODESET) | |
| 106 | 106 | char *codeset, **alias; | |
| 107 | - char encoding[100]; | ||
| 107 | + char encoding[20]; /* longest name: "iso_646.irv_1991\0" */ | ||
| 108 | 108 | int is_ascii; | |
| 109 | 109 | unsigned int i; | |
| 110 | 110 | char* ascii_aliases[] = { | |
| 111 | 111 | "ascii", | |
| 112 | + /* Aliases from Lib/encodings/aliases.py */ | ||
| 112 | 113 | "646", | |
| 113 | - "ansi-x3.4-1968", | ||
| 114 | - "ansi-x3-4-1968", | ||
| 115 | - "ansi-x3.4-1986", | ||
| 114 | + "ansi_x3.4_1968", | ||
| 115 | + "ansi_x3.4_1986", | ||
| 116 | + "ansi_x3_4_1968", | ||
| 116 | 117 | "cp367", | |
| 117 | 118 | "csascii", | |
| 118 | 119 | "ibm367", | |
| 119 | - "iso646-us", | ||
| 120 | - "iso-646.irv-1991", | ||
| 121 | - "iso-ir-6", | ||
| 120 | + "iso646_us", | ||
| 121 | + "iso_646.irv_1991", | ||
| 122 | + "iso_ir_6", | ||
| 122 | 123 | "us", | |
| 123 | - "us-ascii", | ||
| 124 | + "us_ascii", | ||
| 124 | 125 | NULL | |
| 125 | 126 | }; | |
| 126 | 127 | #endif | |
| Back | FazBrowse Home | New Git URL |
0 commit comments