Index: app/TODO
===================================================================
--- app/TODO	(revision 0e3df7e06ad71d2e763b970d4420a4374e473cdd)
+++ app/TODO	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -1,6 +1,6 @@
 BARDZO WAZNE:
 
-* zawieszanie sie lema dla wyrazow z pola -I (np. kor)
-* komunikaty o nieznalezieniu slownika (lem) [TO]
+* zawieszanie sie lema dla wyrazow z pola -I (np. kor) [ZROBIONE,TO]
+* komunikaty o nieznalezieniu slownika (lem) [ZROBIONE, TO]
 
 WAZNE:
@@ -8,8 +8,8 @@
 * sen - unikaÄ dwukrotnego wstawiania BOSÃ³w i EOSÃ³w
 * polaczyc sen'y [TO]
-* programy z atrybutyem input-field: funkcja process_seg zwraca false, gdy nie ma pola podanego po -I
+* programy z atrybutyem input-field: funkcja process_seg zwraca false, gdy nie ma pola podanego po -I [ZROBIONE,TO]
 * generowanie i sprawdzanie zaleznosci dla tarballa [PK]
 * przygotowanie dystrybujcji slownikow [PK]
-* (zrobione dla ser?) Nazwy pmdb2re -> pmdb.tag2re (grp, ser).
+* (zrobione dla ser?) Nazwy pmdb2re -> pmdb.tag2re (grp, ser). [ZROBIONE,TO]
 * Zadania zwiazane z rozbudowa ser (src/ser/TODO).
 * Nowa funkcjonalnoÅÄ dla kot? con? - kaÅŒde zdanie w nowym wierszu
@@ -19,3 +19,5 @@
 find: /home/to/work/utt/lang/dist/tarball/utt-0.9.2/share/utt/pl_PL.ISO-8859-2/.svn: Nie ma takiego pliku ani katalogu
 * przyspieszyÄ process_seg() -> obliczanie prefiksÃ³w pÃ³l z opcji -s i -S raz na poczatku programu, a nie w kolko
+* kor: nie dziala opcja distance
+* zunifikowac opcje cor i kor
 
Index: app/src/common/common.cc
===================================================================
--- app/src/common/common.cc	(revision 0e3df7e06ad71d2e763b970d4420a4374e473cdd)
+++ app/src/common/common.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -195,5 +195,5 @@
 // sprawdza istnienie pliku
 int file_accessible(const char* path) {
-    return access(path, R_OK);
+  return access(path, R_OK);
 }
 
Index: app/src/cor/common_cor.cc
===================================================================
--- app/src/cor/common_cor.cc	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/cor/common_cor.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -10,4 +10,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -16,4 +21,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/cor.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
 }
Index: app/src/gue/common_guess.cc
===================================================================
--- app/src/gue/common_guess.cc	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/gue/common_guess.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -16,4 +16,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -22,4 +27,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/lem.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
 
Index: app/src/kor/common_cor.cc
===================================================================
--- app/src/kor/common_cor.cc	(revision b3179eb76e65f846cde4eec832f307990dacf31c)
+++ app/src/kor/common_cor.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -16,4 +16,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -22,4 +27,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/cor.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   
Index: app/src/lem/common_lem.cc
===================================================================
--- app/src/lem/common_lem.cc	(revision 25ae32e4c2354e0ed6756bbe1de83f39cd814652)
+++ app/src/lem/common_lem.cc	(revision 40358d23e569b2d0d4697a192451fff347a48e96)
@@ -11,4 +11,9 @@
     {
       expand_path(args->dictionary_arg,dictionary);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
   else if (args->dictionary_home_given && args->language_given)
@@ -17,4 +22,9 @@
       expand_path(args->dictionary_home_arg, buf);
       sprintf(dictionary,"%s/%s/lem.bin",buf,args->language_arg);
+      if(file_accessible(dictionary)!=0)
+	{
+	  fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary);
+	  exit(1);
+	}
     }
 }
