mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:32:45 +00:00 
			
		
		
		
	 57eb37160c
			
		
	
	
		57eb37160c
		
	
	
	
	
		
			
			Added some additional fields to the lconv structure that were missing and set all their defaults.
		
			
				
	
	
		
			51 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <assert.h>
 | |
| #include <locale.h>
 | |
| #include <stdio.h>
 | |
| 
 | |
| extern "C" {
 | |
| 
 | |
| static char default_decimal_point[] = ".";
 | |
| static char default_thousands_sep[] = ",";
 | |
| static char default_grouping[] = "\x03\x03";
 | |
| 
 | |
| static char default_empty_string[] = "";
 | |
| static char default_empty_value = 127;
 | |
| 
 | |
| static struct lconv default_locale = {
 | |
|     default_decimal_point,
 | |
|     default_thousands_sep,
 | |
|     default_grouping,
 | |
|     default_empty_string,
 | |
|     default_empty_string,
 | |
|     default_empty_string,
 | |
|     default_empty_string,
 | |
|     default_empty_string,
 | |
|     default_empty_string,
 | |
|     default_empty_string,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value,
 | |
|     default_empty_value
 | |
| };
 | |
| 
 | |
| char* setlocale(int category, const char* locale)
 | |
| {
 | |
|     dbgprintf("FIXME(LibC): setlocale(%d, %s)\n", category, locale);
 | |
|     return nullptr;
 | |
| }
 | |
| 
 | |
| struct lconv* localeconv()
 | |
| {
 | |
|     return &default_locale;
 | |
| }
 | |
| }
 |