/*
*******************************************************************************
*
- * Copyright (C) 1999-2004, International Business Machines
+ * © 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: US-ASCII
+ * encoding: UTF-8
* tab size: 8 (not used)
* indentation:4
*
#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);