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

U_FILE_ACCESS_ERROR when using Single-String Conversion

Description

Deleted Component: docs

So, i was reading http://icu-project.org/userguide/codepageConverters.html an wanted to try the following example:

conv = ucnv_open("shift_jis", &status);

/* Convert from Unicode to Shift JIS */

len = ucnv_fromUChars(conv, target, targetLen, source, sourceLen, &status);

ucnv_close(conv);

But i guess, shift_jis is not supported by the default dll?

I was using windows xp (debian 4.0 stable works perfectly).

So i get U_FILE_ACCESS_ERROR

This is VERY depressing when first testing an example from the documentation!

I found 3 solutions:

1) Screw icu

2) Use iso-8859-1 instead

3) Set ICU_DATA_DIR to "C:\\somfolder\\icu\\source\\data
out" and call u_setDataDirectory(ICU_DATA_DIR);

I really recommend a change in the userguide here!

Environment

Status

Assignee

Steven R. Loomis

Reporter

TracBot

tracCreated

Aug 24, 2008, 12:54 PM

tracOwner

srl

tracProject

all

tracReporter

anonymous

tracResolution

worksforme

tracStatus

closed

Fix versions

Priority

medium