firebird icon indicating copy to clipboard operation
firebird copied to clipboard

firebird.log: provide ability to change encoding of all non-ascii messages to UTF-8

Open pavel-zotov opened this issue 3 years ago • 0 comments

Following test can illustrate problem only when Windows system locale differs from English (in my case it is Russian; command 'wmic os get caption' can be used to check whether OS is localized or no).

  1. run script:
<FB_HOME>\isql -q -i mult-enc-fblog_-_1-worker.sql 

(it will start 'longish fetching') 2) change to another command window and do there:

<FB_HOME>\isql -q -i mult-enc-fblog_-_2-killer.sql
  1. after this script will finish. open firebird.log. You will see that it contain localized messages both in single-byte (cp1251: "система") and in utf8 (non-ascii name of DB-level trigger on disconnect which has bug in its PSQL code and thus was forced to be logged when it fired). All these files are in attached .7z

It will be useful if one may to change such behavior, e.g. by changing some [new] parameter in the firebird.conf, so that all non-ascii messages will be logged there in UTF-8. mult-enc-fblog.zip

pavel-zotov avatar Jan 17 '22 06:01 pavel-zotov