mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	Fix for libast sfstrtof() (Solaris patch 075-multi_lang_arith)
This change is pulled from here: https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/075-multi_lang_arith.patch It appears to be a fix for converting a string to a floating point value in certain locales. Unfortunately there is no publicly available documentation on what it does exactly. We just have to assume the Solaris people knew what they were doing.
This commit is contained in:
		
							parent
							
								
									c69bf543cf
								
							
						
					
					
						commit
						54c4e94205
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -414,7 +414,7 @@ S2F_function(str, end) char* str; char** end;
 | 
			
		|||
			m = 0;
 | 
			
		||||
			fraction = digits;
 | 
			
		||||
		}
 | 
			
		||||
		else if (c != thousand)
 | 
			
		||||
		else if (c != thousand || (c == thousand && decimal == -1))
 | 
			
		||||
			break;
 | 
			
		||||
		else if (!(m = digits))
 | 
			
		||||
		{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue