mirror of
				https://github.com/SwallowOS/xorg_lib_libfontenc
				synced 2025-11-04 13:56:02 +08:00 
			
		
		
		
	Fix ISO-8859-6 → ISO-10646 mapping.
ISO-8859-6 code point 0xC0 is unassigned. ISO-10646 code point U+0620, to which 0xC0 was mapping, has since been assigned an unrelated character. Reported by Norm Pierce. Signed-off-by: James Cloos <cloos@jhcloos.com>
This commit is contained in:
		@@ -250,7 +250,8 @@ iso8859_6_to_unicode(unsigned isocode, void *client_data)
 | 
			
		||||
    if(isocode<=0xA0 || isocode==0xA4 || isocode==0xAD)
 | 
			
		||||
        return isocode;
 | 
			
		||||
    else if(isocode==0xAC || isocode==0xBB ||
 | 
			
		||||
            (isocode>=0xBF && isocode<=0xDA) ||
 | 
			
		||||
	    isocode==0xBF ||
 | 
			
		||||
            (isocode>=0xC1 && isocode<=0xDA) ||
 | 
			
		||||
            (isocode>=0xE0 && isocode<=0xEF) ||
 | 
			
		||||
            (isocode>=0xF0 && isocode<=0xF2))
 | 
			
		||||
        return isocode-0xA0+0x0600;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user