mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 00:43:32 +00:00
ICU-1891 Use EBCDIC on an EBCDIC machine, not ASCII.
X-SVN-Rev: 8621
This commit is contained in:
parent
b2e9333a98
commit
52cf399590
1 changed files with 10 additions and 1 deletions
|
@ -307,7 +307,16 @@ char *aescstrdup(const UChar* unichars,int32_t length){
|
|||
UConverterFromUCallback cb;
|
||||
const void *p;
|
||||
UErrorCode errorCode = U_ZERO_ERROR;
|
||||
UConverter* conv = ucnv_open("US-ASCII",&errorCode);
|
||||
#if U_CHARSET_FAMILY==U_EBCDIC_FAMILY
|
||||
# ifdef OS390
|
||||
static const char convName[] = "ibm-1047";
|
||||
# else
|
||||
static const char convName[] = "ibm-37";
|
||||
# endif
|
||||
#else
|
||||
static const char convName[] = "US-ASCII";
|
||||
#endif
|
||||
UConverter* conv = ucnv_open(convName, &errorCode);
|
||||
if(length==-1){
|
||||
length = u_strlen( unichars);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue