How to modify locale.bll

It's all about BC++ 5.02
I need russian codepage WIN1251 to be recognizable by function setlocale()
As I guess, this can be achieved by modification of the file locale.bll
Where can I find structure info on this file.
Or, may be, somebody has done such a task already?