Warning message: CSF_CharSetDefaults not set when try to save a document

Hi
When I try to save a document by
app->SaveAs(doc,filename,error)
It shows:
Resource Manager Warning: Environment variable "CSF_CharSetDefaults" not set.
Resource Manager Warning: Environment variable "CSF_CharSetUserDefaults" not set.

How can I fix this?

Thanks.

Sean

seanliu's picture

Anybody? Thanks.

Sean

seanliu's picture

Sorry. Could anybody give me a hint?

Thanks.

Sean

Alexander Schneller's picture

Hi sean,

if you have set the "CSF_ResourceVerbose" variable, you can unset this env.
Or you can create a file with the information it needs.

Have a look at the Resource_Manager.cxx constructor line 54-85.

Resource_Manager::Resource_Manager(const Standard_CString aName,
const Standard_Boolean Verbose) : myName(aName), myVerbose(Verbose)
{
Debug = (getenv("ResourceDebug") != NULL) ;

TCollection_AsciiString EnvVar, CSF_ = "CSF_" ;
TCollection_AsciiString Directory ;
Standard_CString dir ;

if ( getenv ("CSF_ResourceVerbose") != NULL )
myVerbose = Standard_True;

EnvVar = CSF_ + aName + "Defaults" ;
if ((dir = getenv (EnvVar.ToCString())) != NULL) {
Directory = dir;
Load(Directory,myName,myRefMap);
}
else
if (myVerbose)
cout << "Resource Manager Warning: Environment variable \"" << EnvVar
<< "\" not set." << endl;

EnvVar = CSF_ + aName + "UserDefaults" ;
if ((dir = getenv (EnvVar.ToCString())) != NULL) {
Directory = dir;
Load(Directory, myName, myUserMap);
}
else
if (myVerbose)
cout << "Resource Manager Warning: Environment variable \"" << EnvVar
<< "\" not set." << endl;
}

How you can see this message will only displayed if CSF_ResourceVerbose != Null.

Regards
Alex