~wordpress-2/calibre/library-gui

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/chm/input.py

  • Committer: Kovid Goyal
  • Date: 2011-10-18 08:49:21 UTC
  • Revision ID: kovid@kovidgoyal.net-20111018084921-x419bojicqf0i9pv
Fix regression that broke reading metadata from CHM files

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    def _chmtohtml(self, output_dir, chm_path, no_images, log, debug_dump=False):
23
23
        from calibre.ebooks.chm.reader import CHMReader
24
24
        log.debug('Opening CHM file')
25
 
        rdr = CHMReader(chm_path, log, self.opts)
 
25
        rdr = CHMReader(chm_path, log, input_encoding=self.opts.input_encoding)
26
26
        log.debug('Extracting CHM to %s' % output_dir)
27
27
        rdr.extract_content(output_dir, debug_dump=debug_dump)
28
28
        self._chm_reader = rdr