BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / terminal / ShellInfo.cpp
blobc3b64051b0f6457aabc8f9429b95a6e2980ce825
1 /*
2 * Copyright 2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include "ShellInfo.h"
9 #include <CharacterSet.h>
10 #include <CharacterSetRoster.h>
12 #include "TermConst.h"
14 using namespace BPrivate ; // BCharacterSet stuff
17 ShellInfo::ShellInfo()
19 fProcessID(-1),
20 fIsDefaultShell(true),
21 fEncoding(M_UTF8),
22 fEncodingName("UTF-8")
27 void
28 ShellInfo::SetEncoding(int encoding)
30 fEncoding = encoding;
32 const BCharacterSet* charset
33 = BCharacterSetRoster::GetCharacterSetByConversionID(fEncoding);
34 fEncodingName = charset ? charset->GetName() : "UTF-8";