2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
9 #include <CharacterSet.h>
10 #include <CharacterSetRoster.h>
12 #include "TermConst.h"
14 using namespace BPrivate
; // BCharacterSet stuff
17 ShellInfo::ShellInfo()
20 fIsDefaultShell(true),
22 fEncodingName("UTF-8")
28 ShellInfo::SetEncoding(int encoding
)
32 const BCharacterSet
* charset
33 = BCharacterSetRoster::GetCharacterSetByConversionID(fEncoding
);
34 fEncodingName
= charset
? charset
->GetName() : "UTF-8";