diff --git a/winixd/functions/functions.cpp b/winixd/functions/functions.cpp index f26204e..88ab17d 100644 --- a/winixd/functions/functions.cpp +++ b/winixd/functions/functions.cpp @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2010-2018, Tomasz Sowa + * Copyright (c) 2010-2021, Tomasz Sowa * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -118,6 +118,13 @@ FunctionBase * Functions::Find(const std::wstring & function_name) if( i == table.end() ) return 0; + FunctionBase * fun = i->second; + + // this is to set 'cur' and 'locale' for slog, but in the future slog will be moved to Session + fun->set_cur(cur); + fun->set_locale(locale); + // + return i->second; }