blob: 8ea078ee69b96cb881e241abfa6087a7de8f2ed1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*============================================================================
**
** Source: test1.c
**
** Purpose: Tests that GetACP returns the expected default code page.
**
**
**==========================================================================*/
#include <palsuite.h>
/*
* NOTE: We only support code page 65001 (UTF-8).
*/
#define EXPECTED_CP 65001
int __cdecl main(int argc, char *argv[])
{
int ret;
if (PAL_Initialize(argc, argv))
{
return FAIL;
}
ret = GetACP();
if (ret != EXPECTED_CP)
{
Fail("ERROR: got incorrect result for current ANSI code page!\n"
"Expected %d, got %d\n", EXPECTED_CP, ret);
}
PAL_Terminate();
return PASS;
}
|