/*
-*******************************************************************************
-*
-* Copyright (C) 1999-2000, International Business Machines
-* Corporation and others. All Rights Reserved.
-*
-*******************************************************************************
-* file name: reader.c
-* encoding: US-ASCII
-* tab size: 8 (not used)
-* indentation:4
-*
-* created on: 2000sep5
-* created by: Vladimir Weinstein
-*/
+ *******************************************************************************
+ *
+ * © 2016 and later: Unicode, Inc. and others.
+ * License & terms of use: http://www.unicode.org/copyright.html#License
+ *
+ *******************************************************************************
+ *******************************************************************************
+ *
+ * Copyright (C) 1999-2009, International Business Machines
+ * Corporation and others. All Rights Reserved.
+ *
+ *******************************************************************************
+ * file name: reader.c
+ * encoding: UTF-8
+ * tab size: 8 (not used)
+ * indentation:4
+ *
+ * created on: 2000sep5
+ * created by: Vladimir Weinstein
+ */
/*******************************************************************************
* Derived from Madhu Katragadda gentest
#include <unistd.h>
#endif
#include "unicode/utypes.h"
+#include "unicode/putil.h"
#include "unicode/udata.h"
-#define DATA_NAME "example"
+#define DATA_NAME "mypkg_example"
#define DATA_TYPE "dat"
/* UDataInfo cf. udata.h */
char *currdir = getcwd(NULL, 0);
#endif
- /* need to put "current/dir/pkgname" as path */
+ /* need to put "current/dir" as path */
strcpy(curPathBuffer, currdir);
- strcat(curPathBuffer, U_FILE_SEP_STRING);
- strcat(curPathBuffer, "mypkg"); /* package name */
result=udata_openChoice(curPathBuffer, DATA_TYPE, DATA_NAME, isAcceptable, NULL, &status);