Skip to content

Commit

Permalink
Fix for windows encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
anufrievroman authored Jan 11, 2022
1 parent a7a40a2 commit da90962
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calcure
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ if not os.path.exists(config_file):

try:
# Calendar settings:
conf.read(config_file)
conf.read(config_file, 'utf-8')
SHOW_KEYBINDINGS = conf.getboolean("Parameters", "show_keybindings", fallback=True)
SHOW_DAY_NAMES = conf.getboolean("Parameters", "show_day_names", fallback=True)
MINIMAL_TODAY_INDICATOR = conf.getboolean("Parameters", "minimal_today_indicator", fallback=True)
Expand Down Expand Up @@ -355,7 +355,7 @@ def load_events():
with open(EVENTS_FILE, "w+") as f:
pass

with open(EVENTS_FILE,"r") as f:
with open(EVENTS_FILE, "r") as f:
lines = csv.reader(f, delimiter = ',')
ids, dates, names, statuses = [], [], [], []
try:
Expand Down Expand Up @@ -827,7 +827,7 @@ def delete_all_tasks(stdscr):


def calcurse_task_import(stdscr, tasks):
'''Import tasks from calcurse database'''
'''Import todo events from calcurse database'''
y_max, _ = stdscr.getmaxyx()
prompt_string = "Import tasks from calcurse? (y/n) "
confirmed = ask_confirmation(stdscr, prompt_string)
Expand Down

0 comments on commit da90962

Please sign in to comment.