mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Workaround for buggy rtf files that use ansicpg0
This commit is contained in:
		
							parent
							
								
									12ae61a328
								
							
						
					
					
						commit
						e031c39d2c
					
				@ -41,6 +41,8 @@ class GetCharMap:
 | 
				
			|||||||
        self.__bug_handler = bug_handler
 | 
					        self.__bug_handler = bug_handler
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_char_map(self, map):
 | 
					    def get_char_map(self, map):
 | 
				
			||||||
 | 
					        if map == 'ansicpg0':
 | 
				
			||||||
 | 
					            map = 'ansicpg1250'
 | 
				
			||||||
        found_map = 0
 | 
					        found_map = 0
 | 
				
			||||||
        map_dict = {}
 | 
					        map_dict = {}
 | 
				
			||||||
        self.__char_file.seek(0)
 | 
					        self.__char_file.seek(0)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user