We're updating the issue view to help you get more done. 

UText, handling of errors on open()

Description

A UText can be reset to operate on new text by a utext_open operation. This is as designed.

The question is, what state should a UText be left in if it was open already and it is re-opened and the new open fails because of bad parameters.

The answer is not completely obvious. We could close the existing UText, but if object was initially allocated by by a utext_open(), it will be gone, and the user will probably not be expecting (or dealing with) an open destroying his already existing object.

For utexts owned by the caller, closing would be fine; the object (struct) still exists and can be safely opened again.

Environment

Status

Assignee

Andy Heninger

Reporter

Andy Heninger

Time Needed

Hours

tracCreated

Apr 18, 2009, 5:02 PM

tracOwner

andy

tracProject

ICU4C

tracReporter

andy

tracStatus

accepted

tracWeeks

0.2

Components

Priority

medium