BUG: "Code Page Not Found" Caused by SET CPCOMPILE to 0 (113006)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft FoxPro for Windows 2.5
- Microsoft FoxPro for Windows 2.5a
- Microsoft FoxPro for Windows 2.5b
- Microsoft FoxPro for Windows 2.6
- Microsoft FoxPro for Windows 2.6a
- Microsoft FoxPro for MS-DOS 2.0
- Microsoft FoxPro for MS-DOS 2.5
- Microsoft FoxPro for MS-DOS 2.5a
- Microsoft FoxPro for MS-DOS 2.5b
- Microsoft FoxPro for MS-DOS 2.6
- Microsoft FoxPro for MS-DOS 2.6a
- Microsoft FoxPro for UNIX 2.6
This article was previously published under Q113006 SYMPTOMS
When a SET CPCOMPILE TO 0 command is issued, the following error message
occurs:
Code page not found
In Visual FoxPro 5.0, the following error message appears:
Code Page number is invalid
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Problem- Add the following line to CONFIG.FP or CONFIG.FPW:
CODEPAGE=AUTO
- In the Command window, type "SET CPCOMPILE TO 0" (without the quotation
marks).
The following error message occurs.
Code page not found
- In the Command window, type "COMPILE <Program> AS 0" (without the
quotation marks).
Note that this works. An error message should be returned.
The SET CPCOMPILE command is new to FoxPro 2.6. This command specifies the
code page for compiled programs.
Use SET CPCOMPILE to compile programs for a specific code page. The code
page you specify with SET CPCOMPILE is used for programs compiled
automatically by FoxPro, programs compiled using the Compile dialog box,
and programs compiled with the COMPILE command. To override the code page
you specified with SET CPCOMPILE, you can include the AS clause in the
COMPILE command. For more information about COMPILE AS, see the FoxPro
online Help.
The valid code pages that can be used with the SET CPCOMPILE TO command are
listed below:
Options Language(s) Code pages
-----------------------------------------------------------------------
CZECH Czech 852, 895, 1250, 10029
DUTCH Dutch 437, 850, 1252, 10000
GENERAL English, French, German,
Modern Spanish, Portuguese
and other Western European
languages 437, 620, 850, 852, 857, 861,
865, 895, 1250, 1252, 1254,
10000, 10029
GREEK Greek 737, 1253, 10006
HUNGARY Hungarian 852, 1250
ICELAND Icelandic 437, 850, 861, 1252,
NORDAN Norwegian, Danish 437, 850, 865, 1252, 10000
POLISH Polish 620, 852, 1250, 10029
RUSSIAN Russian 866, 1251, 10007
SLOVAK Slovak 852, 895, 1250, 10029
SPANISH *Traditional Spanish 437, 850, 1252, 10000
SWEFIN Swedish, Finnish 437, 850, 865, 1252, 10000
TURKISH Turkish 857, 1254
UNIQWT Unique Weight 437, 850, 1252, 10000
Modification Type: | Minor | Last Reviewed: | 3/3/2005 |
---|
Keywords: | kbBug KB113006 |
---|
|