BUG: "Code Page Not Found" Caused by SET CPCOMPILE to 0

ID: Q113006


The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 5.0, 5.0a, 6.0
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6, 2.6a
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, 2.5b, 2.6, 2.6a
  • Microsoft FoxPro for UNIX, version 2.6


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 


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Steps to Reproduce Problem

  1. Add the following line to CONFIG.FP or CONFIG.FPW: CODEPAGE=AUTO


  2. In the Command window, type "SET CPCOMPILE TO 0" (without the quotation marks). The following error message occurs. Code page not found


  3. 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 

Additional query words: codepage kbvfp300 kbvfp500 kbvfp600

Keywords : kbVFp kbVFp500abug kbVFp500bug kbVFP260bug FoxDos FoxWin FxprgIntl
Version : MS-DOS:2.0,2.5,2.5a,2.5b,2.6,2.6a; UNIX:2.6; WINDOWS:2.5,2.5a,2.5b,2.6,2.6a,3.0,5.0,5.0a,6.0
Platform : MS-DOS UNIX WINDOWS
Issue type : kbbug


Last Reviewed: December 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.