PM79571: [wi 245593] - Fix localization problems with FileWriter

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The use of FileWrite seems to cause problem when writing files
    with content containing Asian letters. For example, New work
    item from template - renamed template name is garbled (227566)
    
    I found the following usages of FileWirter that should be fixed
    as shown below:
    
    CITW.capture.internal - src - com.ibm.team.workitem.capture
        ScreenCapture#saveSettings()
    CITW.extension.internal.buildnote - src -
    com.ibm.team.workitem.extension
        GenerateBuildNotes#run(IAction)
    CITW.ide.ui.internal.aspecteditor.templates - src -
    com.ibm.team.workitem.ide.ui
        SharedTemplateManager#updateTemplateInAttachment()
    CITW.rcp.core.internal - src - com.ibm.team.workitem.rcp.core
        FavoriteValues#saveState()
    CITW.rcp.core.tests.internal.csv - src -
    com.ibm.team.workitem.rcp.core.tests
    
    CSVImportWorkItemListsCreateTest#exportAllItemsToCSV(List?IWorkI
    tem?,
    File)
    
    CSVImportWorkItemListsCreateTest#exportFirstItemToCSV(List?IWork
    Item?,
    File)
    
    
    
    Proposed fix:
    
    FileWriter writer= new FileWriter(localFile);
    replaced with
    Writer writer= new OutputStreamWriter(new
    FileOutputStream(localFile), UTF8_ENCODING);
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See
    https://jazz.net/jazz/resource/itemName/com.ibm.team.workite
    m.WorkItem/245593
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM79571

  • Reported component name

    RATL TEAM CONCE

  • Reported component ID

    5724V0400

  • Reported release

    300

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-12-20

  • Closed date

    2013-06-11

  • Last modified date

    2013-06-11

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL TEAM CONCE

  • Fixed component ID

    5724V0400

Applicable component levels

  • R300 PSN

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Rational Team Concert

Software version:

3.0

Reference #:

PM79571

Modified date:

2013-06-11

Translate my page

Machine Translation

Content navigation