Lines Matching refs:filename
107 gchar *filename = g_filename_from_utf8( utf8name, -1, NULL, NULL, NULL );
108 if ( filename )
111 fp = std::fopen(filename, mode);
113 g_free(filename);
115 filename = 0;
140 gchar *filename = g_filename_from_utf8( utf8name, -1, NULL, NULL, NULL );
141 if ( filename )
144 retval = ::mkdir(filename, S_IRWXU | S_IRGRP | S_IXGRP);
146 g_free(filename);
148 filename = 0;
165 * name_used contains the actual name used (a raw filename, not necessarily utf8).
187 gchar *filename = NULL;
189 /* FIXME: Trying to guess whether or not a filename is already in utf8 is unreliable.
193 filename = g_strdup(utf8name);
197 filename = g_filename_from_utf8 ( utf8name, -1, NULL, NULL, NULL );
199 if ( filename ) {
200 exists = g_file_test (filename, test);
201 g_free(filename);
202 filename = NULL;
204 g_warning( "Unable to convert filename in IO:file_test" );
216 gchar *filename = NULL;
218 /* FIXME: Trying to guess whether or not a filename is already in utf8 is unreliable.
222 filename = g_strdup(utf8name);
226 filename = g_filename_from_utf8 ( utf8name, -1, NULL, NULL, NULL );
228 if ( filename ) {
230 if (g_file_test (filename, G_FILE_TEST_EXISTS)){
231 if (g_lstat (filename, &st) == 0) {
235 g_free(filename);
236 filename = NULL;
238 g_warning( "Unable to convert filename in IO:file_test" );
251 gchar *filename = NULL;
253 /* FIXME: Trying to guess whether or not a filename is already in utf8 is unreliable.
257 filename = g_strdup(utf8name);
261 filename = g_filename_from_utf8 ( utf8name, -1, NULL, NULL, NULL );
263 if ( filename ) {
264 gchar *dirname = g_path_get_dirname(filename);
266 g_free(filename);
268 filename = NULL;
271 g_warning( "Unable to convert filename in IO:file_test" );
325 g_warning( "input filename did not yield UTF-8" );
333 // g_warning( "input failed filename->utf8, fell back to original" );
339 g_warning( "input filename conversion failed for file with locale charset '%s'", charset );
396 * Returns the file extension of a path/filename