efi_loader: move codepage 437 table
Move the Unicode to codepage 437 table to charset.c Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
		
							parent
							
								
									997b57fc1a
								
							
						
					
					
						commit
						70616a1ed8
					
				|  | @ -13,6 +13,11 @@ | ||||||
| 
 | 
 | ||||||
| #define MAX_UTF8_PER_UTF16 3 | #define MAX_UTF8_PER_UTF16 3 | ||||||
| 
 | 
 | ||||||
|  | /**
 | ||||||
|  |  * codepage_437 - Unicode to codepage 437 translation table | ||||||
|  |  */ | ||||||
|  | extern const u16 codepage_437[128]; | ||||||
|  | 
 | ||||||
| /**
 | /**
 | ||||||
|  * console_read_unicode() - read Unicode code point from console |  * console_read_unicode() - read Unicode code point from console | ||||||
|  * |  * | ||||||
|  |  | ||||||
|  | @ -8,9 +8,15 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <charset.h> | #include <charset.h> | ||||||
| #include <capitalization.h> | #include <capitalization.h> | ||||||
|  | #include <cp437.h> | ||||||
| #include <efi_loader.h> | #include <efi_loader.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| 
 | 
 | ||||||
|  | /**
 | ||||||
|  |  * codepage_437 - Unicode to codepage 437 translation table | ||||||
|  |  */ | ||||||
|  | const u16 codepage_437[128] = CP437; | ||||||
|  | 
 | ||||||
| static struct capitalization_table capitalization_table[] = | static struct capitalization_table capitalization_table[] = | ||||||
| #ifdef CONFIG_EFI_UNICODE_CAPITALIZATION | #ifdef CONFIG_EFI_UNICODE_CAPITALIZATION | ||||||
| 	UNICODE_CAPITALIZATION_TABLE; | 	UNICODE_CAPITALIZATION_TABLE; | ||||||
|  |  | ||||||
|  | @ -23,7 +23,7 @@ static const char illegal[] = "+,<=>:;\"/\\|?*[]\x7f"; | ||||||
| static const u16 codepage[] = CP1250; | static const u16 codepage[] = CP1250; | ||||||
| #else | #else | ||||||
| /* Unicode code points for code page 437 characters 0x80 - 0xff */ | /* Unicode code points for code page 437 characters 0x80 - 0xff */ | ||||||
| static const u16 codepage[] = CP437; | static const u16 *codepage = codepage_437; | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| /* GUID of the EFI_UNICODE_COLLATION_PROTOCOL2 */ | /* GUID of the EFI_UNICODE_COLLATION_PROTOCOL2 */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue