BUG: Turkish Regional Setting Causes Translation Problems (297679)



The information in this article applies to:

  • Microsoft virtual machine

This article was previously published under Q297679

SYMPTOMS

If you change the regional settings from English to Turkish on a Java Component Object Model (COM) object, you may receive the following error message:
Object doesn't support this property or method

CAUSE

This problem occurs because method names that contain an uppercase "I" are not translated correctly under Turkish regional settings. As a result, a valid method can no longer be found.

RESOLUTION

To work around this problem, rename the method in question. For example, the GetRequestID method produces an error with Turkish regional settings. Change the uppercase "I" to lowercase "i" to rename the method GetRequestiD.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a default COM dynamic-link library (DLL) in Microsoft Visual J++.
  2. Add the following code to the Class1.java file, which the default project provides:
    public String GetRequestID()
    {
       return "GETRequestID";	
    }
    					
  3. Compile the project. This also registers the new DLL.
  4. Create a file named TurkishTest.js, and paste the following code:
    var x = new ActiveXObject("TurkTest.Class1");
    
    WScript.echo(x.GetRequestID());
    					
  5. Double-click the script file from within Windows Explorer to run the script. If regional settings are set to English, a dialog box displays the text "GETRequestID".
  6. In Control Panel, click Regional Options, and then click Turkish.
  7. Re-run the script. You receive the above-mentioned error message.

    Workaround

  8. Change the name of the method in the DLL to GetRequestiD, and recompile the DLL.
  9. Test the script with regional settings set to English and then Turkish. In both cases, a dialog box displays the text "GETRequestID".

REFERENCES

For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:6/14/2006
Keywords:kbBug kbJava kbpending KB297679