anki/qt/aqt
Damien Elmes a8139ebb40 force stdout/stderr encoding to utf8
As a GUI app, Anki only uses these for debugging info, and we've been
bitten numerous times in the past by bugs caused by printing Unicode
when the console only supported ASCII. An ens var might have been
a better approach, but Pyinstaller does not support defining them before
Python is initialized from what I can tell.

Latest issue:
https://forums.ankiweb.net/t/crashing-anki-version-2-1-29-bbff62bf/1650
2020-08-01 11:31:22 +10:00
..
__init__.py force stdout/stderr encoding to utf8 2020-08-01 11:31:22 +10:00
.gitignore basic night mode support 2020-01-23 17:27:07 +10:00
about.py add some more names to about.py 2020-06-01 06:27:14 +10:00
addcards.py hook: history_line 2020-06-08 20:47:01 +02:00
addons.py Turn on check_untyped_defs for aqt.addons 2020-07-30 18:43:57 -06:00
browser.py refresh tag list after clearing unused 2020-07-31 13:33:41 +10:00
clayout.py pass night mode into body_class() instead of changing globally 2020-07-31 14:47:17 +10:00
customstudy.py Remove useless variables 2020-07-17 08:38:48 +02:00
dbcheck.py formatting 2020-06-09 14:07:39 +10:00
deckbrowser.py fix misaligned deck heading in RTL languages 2020-07-22 11:00:39 +10:00
deckchooser.py Remove useless variables 2020-07-17 08:38:48 +02:00
deckconf.py Add type hints for apt.deckconf 2020-07-23 21:53:12 -06:00
dyndeckconf.py Add type hints for apt.dyndeckconf 2020-07-23 16:04:46 -06:00
editcurrent.py add qconnect helper and some type hints 2020-01-16 07:41:23 +10:00
editor.py Re-add previously supported file extensions for media 2020-07-29 15:08:33 +02:00
emptycards.py Turn on check_untyped_defs for aqt.emptycards 2020-07-30 18:43:57 -06:00
errors.py Add type hints to errors 2020-07-24 11:20:54 -06:00
exporting.py add "immediate" progress back 2020-06-01 13:57:10 +10:00
fields.py do nothing if dropPos == idx 2020-05-26 18:59:53 +09:00
gui_hooks.py just forgot to regenerate gui_hooks.py to fix typo 2020-07-31 04:47:31 +03:00
importing.py Add type hints to importing 2020-07-24 12:38:34 -06:00
legacy.py use keyword args for calls with more than one argument 2020-05-24 09:12:47 +10:00
main.py Merge pull request #692 from Arthur-Milchior/remove_useles_variables 2020-07-20 11:35:40 +10:00
mediacheck.py rework progress handling 2020-06-01 13:57:10 +10:00
mediasrv.py don't throw error on empty path 2020-07-27 11:28:32 +10:00
mediasync.py Scroll media sync log to the last line 2020-07-13 03:06:44 +03:00
modelchooser.py added typehints to modelchooser, updated mypy.ini 2020-07-30 15:25:25 +10:00
models.py added type hints to qt models 2020-07-30 13:28:52 +10:00
mpv.py Add --no-autoload-files option to mpv 2020-07-23 14:28:47 +03:00
overview.py use deck tree for new/review count calculation 2020-05-16 20:28:03 +10:00
pinnedmodules.py pin legacy modules 2020-06-08 11:12:51 +10:00
preferences.py add night mode and mobile class toggles in card layout screen 2020-07-30 15:39:02 +03:00
previewer.py fix lint issue in previewer, and drop unused code 2020-07-24 12:18:37 +10:00
profiles.py Added typehints for qt profiles 2020-07-31 00:56:48 +10:00
progress.py add progress to db check 2020-06-08 21:07:36 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
qt.py Turn on check_untyped_defs for aqt.webview 2020-07-30 18:43:57 -06:00
reviewer.py add reviewer_will_play_question_sounds and reviewer_will_play_answer_sounds hooks 2020-07-30 22:20:19 +03:00
schema_change_tracker.py track changes in fields dialog as well 2020-05-15 13:59:44 +10:00
sound.py formatting and debug statement tweak 2020-07-24 11:57:37 +10:00
stats.py Add a couple of hooks to trigger add-on actions before showing stats 2020-07-16 21:48:46 +02:00
studydeck.py Don't call setCurrentRow if row didn't change 2020-07-13 12:33:36 +03:00
sync.py full sync terminates media sync; start it again afterwards 2020-07-21 11:26:41 +10:00
tagedit.py handle default deck and filtered deck suppression in the backend 2020-05-15 21:21:10 +10:00
taglimit.py Turn on check_untyped_defs for aqt.taglimit 2020-07-25 15:45:31 -06:00
taskman.py lint fixes 2020-06-01 13:57:10 +10:00
theme.py pass night mode into body_class() instead of changing globally 2020-07-31 14:47:17 +10:00
toolbar.py Add top_toolbar_did_redraw hook 2020-07-10 17:38:40 +02:00
tts.py fix audio getting stuck (2/2) 2020-03-15 09:34:04 +10:00
update.py Turn on check_untyped_defs for aqt.update 2020-07-25 17:31:44 -06:00
utils.py Moved the utils.py new save/restore functions together 2020-06-08 16:23:32 -03:00
webview.py Turn on check_untyped_defs for aqt.webview 2020-07-30 18:43:57 -06:00
winpaths.py tweaking the folder names again 2020-01-03 07:48:38 +10:00